知识卡片
按大小压实与时间窗压实
大小分层把体量相近的表归组,几张小表合出下一档的大表。若删除很多,合并结果仍小,可能一直凑不够大表数量,须考虑强制压实避免高档饥饿。对带 TTL 的时间序列,按写入窗口分组可直接丢掉已全部过期的文件,省掉整窗重写。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Maintenance in LSM Trees · 查看原书依据
One of the problems with size-tiered compaction is called table starvation: if compacted tables are still small enough after compaction (e.g., records were shadowed by the tombstones and did not make it to the merged table), higher
参考来源
- 位置:《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#idm46104531629272,段 142)
- 结论依据:第 139–144 段说明大小分档、饥饿和时间窗。
- 原始内容:One of the problems with size-tiered compaction is called table starvation: if compacted tables are still small enough after compaction (e.g., records were shadowed by the tombstones and did not make it to the merged table), higher