知识卡片
双组件LSM合并磁盘子树
双组件 LSM 只有一棵由不可变分段组成的磁盘搜索树。刷盘时选定内存子树并合并磁盘同范围子树,两个有序迭代器线性生成新段;刷的过程中旧内存段与磁盘段仍可读,发布新段与退役旧结构一起执行。每次刷出即带动磁盘合并,可能推高写放大。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage LSM Tree Structure · 查看原书依据
Memory-resident tree contents are flushed on disk in parts. During a flush, for each flushed in-memory subtree, we find a corresponding subtree on disk and write out the merged contents of a memory-resident segment and disk-resident subtree
参考来源
- 位置:《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#two_component_lsm_tree,段 33)
- 结论依据:第 31–43 段给出双组件结构、子树合并与视图要求。
- 原始内容:Memory-resident tree contents are flushed on disk in parts. During a flush, for each flushed in-memory subtree, we find a corresponding subtree on disk and write out the merged contents of a memory-resident segment and disk-resident subtree