知识卡片

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

不可变文件依然管理引用

理解等级:中级

读取不可变文件时,缓存中的文件页无需通过闩防止原地改写;进行中的读仍须绑定页与文件寿命,用引用计数等方法防止提前驱逐、关闭和删除。记录可按绝对偏移寻址,若一条记录跨设备块,读取仍要装入涉及的多个块。

这张卡片看不懂?

已有反馈 · 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#idm46104531514696,段 212) - 结论依据:第 211–214 段说明缓存、文件寿命和跨块定位。 - 原始内容:The most notable difference is that in-memory contents are immutable and therefore require no additional locks or latches for concurrent access. Reference counting is applied to make sure that currently accessed pages are not evicted from memory,