随笔分类 - 数据库
摘要:Implementing a Key-Value Store – Part 10: High-Performance Networking: KingServer vs. Nginx This is Part 10 of the IKVS series, “Implementing a Key-Va
阅读全文
摘要:Implementing a Key-Value Store – Part 9: Data Format and Memory Management in KingDB This is Part 9 of the IKVS series, “Implementing a Key-Value Stor
阅读全文
摘要:Implementing a Key-Value Store – Part 8: Architecture of KingDB This is Part 8 of the IKVS series, “Implementing a Key-Value Store”. You can also chec
阅读全文
摘要:Implementing a Key-Value Store – Part 7: Optimizing Data Structures for SSDs This is Part 7 of the IKVS series, “Implementing a Key-Value Store”. You
阅读全文
摘要:Implementing a Key-Value Store – Part 6: Open-Addressing Hash Tables This is Part 6 of the IKVS series, “Implementing a Key-Value Store”. You can also
阅读全文
摘要:Implementing a Key-Value Store – Part 5: Hash table implementations This is Part 5 of the IKVS series, “Implementing a Key-Value Store”. You can also
阅读全文
摘要:Implementing a Key-Value Store – Part 4: API Design This is Part 4 of the IKVS series, “Implementing a Key-Value Store”. You can also check the Table
阅读全文
摘要:Implementing a Key-Value Store – Part 2: Using existing key-value stores as models This is Part 2 of the IKVS series, “Implementing a Key-Value Store”
阅读全文
摘要:Implementing a Key-Value Store – Part 3: Comparative Analysis of the Architectures of Kyoto Cabinet and LevelDB This is Part 3 of the IKVS series, “Im
阅读全文
摘要:Implementing a Key-Value Store – Part 1: What are key-value stores, and why implement one? This is Part 1 of the IKVS series, “Implementing a Key-Valu
阅读全文
摘要:这是一个关于如何设计一个key-value存储的系列文章的翻译 Implementing a Key-Value Store Published by Emmanuel Goossaert on November 7, 2012 UPDATE July 21, 2016 : This article
阅读全文
摘要:基本概念 ref: leveldb实现解析 Slice 数据的长度信息和内容信息被包装成一个整体结构,叫做Slice include/leveldb/slice.h class Slice { // ... other private: const char* data_; size_t size_
阅读全文
摘要:references: https://github.com/google/leveldb/blob/main/doc/index.md Base Operations 打开数据库,并进行数据的写入、读取、删除操作 int main(int argc, char **argv) { // open
阅读全文
摘要:MySQL的优化 参考:这些程序员最应该知道的MySQL知识!可惜之前没人告诉我…执行计划/索引/数据结构/设计原则/优化/锁/树/hash表/MVCC/优化..._哔哩哔哩_bilibili 更好的阅读效果可以看这里:GitHub 索引 索引是帮助MySQL高效获取数据的排好序的数据结构 索引数据
阅读全文
摘要:将之前写的重新编辑了一遍: 这Markdown的支持,预览没问题,实际打开看就不行。更好观看体验可以去Github MySQL的基本操作 - 荒唐了年少 - 博客园 (cnblogs.com) MySQL 增删改 - 荒唐了年少 - 博客园 (cnblogs.com) MySQL —— 基本查询方法
阅读全文
摘要:redis NoSQL 特点 不支持 SQL 语法 key-value形式存储数据 没有通用的语言 适用场景与SQL不同 redist安装 下载安装包:http://www.redis.cn/download.html 解压压缩包:tar -zxvf redis-6.0.6.tar.gz 编译安装需
阅读全文
摘要:背景: 最近在使用Qt+SQLite写一个本地数据库管理程序(使用者不懂SQL),在写向数据库中插入数据的 相关的函数时,我遇到了几个问题(暂时就这些): 1.向指定字段插入指定数据时,读取到的数据都是字符串类型,然而不同字段的数据类型是不同的,这 里需要获取不同字段的数据类型,再做类型转换 2.使
阅读全文
摘要:上述代码(以Python内置的sqlite为例)展示了如何连接数据库,并在数据库中新建table,并对table进行增删改查操作 而下面在我准备连接MySQL时,出现下列错误: 错误信息:OperationalError: (2059, <NULL>) 在网上找到的错误原因:MySQL8.0使用的新
阅读全文
摘要:数据库的发展: 层次网状数据库关系数据库分布式数据库 数据库的发展: 理论基础: 关系代数运算: 选择运算、投影运算、更名运算并运算、集合差运算、笛卡尔积运算 理论基础: 关系代数运算: 集合交运算、自然连接运算、赋值运算、广义投影、聚集运算、外连接 数据模型: 关系模型、E-R模型、基于对象的数据
阅读全文
摘要:MySQL——多表查询 连接查询: 交叉连接: 结果:返归第一个表中复合查询条件的数据行数乘以第二个表中复合查询条件的行数 语法格式:select 查询内容 from 表1 cross join 表2; mysql> select * from boy; + + + | hid | bname |
阅读全文

浙公网安备 33010602011771号