← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10294.a.3.d.1 · 生成模型:未记录

双组件LSM合并磁盘子树

理解等级:中级

双组件 LSM 只有一棵由不可变分段组成的磁盘搜索树。刷盘时选定内存子树并合并磁盘同范围子树,两个有序迭代器线性生成新段;刷的过程中旧内存段与磁盘段仍可读,发布新段与退役旧结构一起执行。每次刷出即带动磁盘合并,可能推高写放大。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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