知识卡片
不可变文件以新版本替换
文件写成后不修改,更新和删除追加新记录;一次点查或扫描可能需从多个来源选择最新值。连续写入减少定位旧页和反复改页,文件构造时也能填紧数据块。多个版本的占用与读时代价要由过滤、合并和后台维护来控制。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 7. Log-Structured Storage Chapter 7. Log-Structured Storage · 查看原书依据
Similarly, immutable storage structures do not allow modifications to the existing files: tables are written once and are never modified again. Instead, new records are appended to the new file and, to find the final value (or
参考来源
- 位置:《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#immutable_storage,段 5)
- 结论依据:第 5–12、17–23 段对照不可变与原地更新及维护职责。
- 原始内容:Similarly, immutable storage structures do not allow modifications to the existing files: tables are written once and are never modified again. Instead, new records are appended to the new file and, to find the final value (or