知识卡片
分级压实限制读候选
L0 直接接收内存刷出的表,范围可重叠;L1 起同层各表的键范围互斥,读可按范围跳过绝大多数表。层容量达到阈值时,将上层表与下一层相交范围合并并写到下一层。读和空间开销可更紧,较老数据则随重叠范围反复改写。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Maintenance in LSM Trees · 查看原书依据
Key ranges for the tables on level 1 and all levels with a higher index do not overlap, so level-0 tables have to be partitioned during compaction, split into ranges, and merged with tables holding corresponding key
参考来源
- 位置:《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#idm46104531639528,段 132)
- 结论依据:第 130–137 段说明分级放置、重叠选择和范围剪枝。
- 原始内容:Key ranges for the tables on level 1 and all levels with a higher index do not overlap, so level-0 tables have to be partitioned during compaction, split into ranges, and merged with tables holding corresponding key