知识卡片
多组件LSM分离刷盘和压实
内存表先积攒并排序更新,写日志提供早于数据文件的持久性。刷盘产生一个独立的只读文件,不必立刻重写磁盘的同键范围。后台压实选择多个文件,顺序读取并合并到新文件,再以新可读文件替换旧文件。延后合并降低写路径耦合,同时提高未整理阶段的读、空间开销。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage LSM Tree Structure · 查看原书依据
Having to read from multiple sources instead of just one might get expensive. To mitigate this problem and keep the number of tables to minimum, a periodic merge process called compaction (see “Maintenance in LSM Trees”) is
参考来源
- 位置:《Database Internals》Chapter 7. Log-Structured Storage(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch07.html#idm46104531768184,段 47)
- 结论依据:第 26–29、44–50 段对照直接刷出与后续压实。
- 原始内容:Having to read from multiple sources instead of just one might get expensive. To mitigate this problem and keep the number of tables to minimum, a periodic merge process called compaction (see “Maintenance in LSM Trees”) is