← 返回刚才阅读的位置

知识卡片

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

按大小压实与时间窗压实

理解等级:中级

大小分层把体量相近的表归组,几张小表合出下一档的大表。若删除很多,合并结果仍小,可能一直凑不够大表数量,须考虑强制压实避免高档饥饿。对带 TTL 的时间序列,按写入窗口分组可直接丢掉已全部过期的文件,省掉整窗重写。

这张卡片看不懂?

已有反馈 · 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#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