知识卡片
墓碑阻止旧值复活
磁盘留有 k1 的旧值,内存保存更新后的值。仅从内存移除 k1 会让旧值重新成为最新版本。删除应写入更新的墓碑,读取或压实按版本选出墓碑并遮蔽旧值。范围墓碑对一段连续有序键生效,合并时要正确处理重叠和文件边界,例如闭开区间覆盖 k2、k3 而保留 k4。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Updates and Deletes · 查看原书依据
Because of that, deletes need to be recorded explicitly. This can be done by inserting a special delete entry (sometimes called a tombstone or a dormant certificate), indicating removal of the data record associated with a specific
参考来源
- 位置:《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#idm46104531793976,段 76)
- 结论依据:第 70–82 段解释点删除与范围墓碑。
- 原始内容:Because of that, deletes need to be recorded explicitly. This can be done by inserting a special delete entry (sometimes called a tombstone or a dormant certificate), indicating removal of the data record associated with a specific