知识卡片

普通读书笔记卡 · 10295.a.1.a.4.a.3.a · 生成模型:未记录

页整理何时能回收版本

理解等级:中级

删除槽目录项或重定向槽可以使旧字节不再出现在新查询中。采用多版本并发控制时,旧事务仍可能引用旧单元,须等所有可能读取者结束再释放,通常由幽灵记录跟踪或类似机制协助判断。压实重写仍可访问的单元并合并空洞,需要连贯空间时可同步运行,也可在后台摊销写入延迟。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Database Internals》Chapter 4. Implementing B-Trees(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch04.html#idm46104532813784,段 100) - 结论依据:原文明确旧版本的可回收时间由并发事务的可访问性决定,随后介绍按需或异步压实。 - 原始内容:Some databases rely on garbage collection, and leave removed and updated cells in place for multiversion concurrency control (see “Multiversion Concurrency Control”). Cells remain accessible for the concurrently executing transactions until the update is complete, and