知识卡片
墓碑何时释放空间
删除标记是一条带键和删除元数据的记录,读路径遇到较新的删除标记时应屏蔽已经删除的版本。同一键上的新写入也可能盖住旧版本。物理空间回收时分析哪些记录仍可见,只重写存活记录,再释放旧空间。逻辑删除生效与释放文件空间之间因此有时间差。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 1. Introduction and Overview Data Files and Index Files · 查看原书依据
New records (insertions) and updates to the existing records are represented by key/value pairs. Most modern storage systems do not delete data from pages explicitly.
参考来源
- 位置:《Database Internals》Chapter 1. Introduction and Overview(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch01.html#data_and_index,段 95)
- 结论依据:原文从更新、删除标记、遮盖和垃圾回收解释空间何时回收。
- 原始内容:New records (insertions) and updates to the existing records are represented by key/value pairs. Most modern storage systems do not delete data from pages explicitly.