知识卡片
磁盘格式要管理地址
磁盘 B 树首先是一套页管理机制。实现要决定格式能否以少量 I/O 定位,如何把字节解释为键和记录,哪些区段可重新使用。内存中指针寻址和对象分配常由操作系统与运行时接手;磁盘结构大多要自己算偏移、搬迁数据和维护空闲空间。布局和算法因此需要一起设计。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 3. File Formats Chapter 3. File Formats · 查看原书依据
The semantics of pointer management in on-disk structures are somewhat different from in-memory ones. It is useful to think of on-disk B-Trees as a page management mechanism: algorithms have to compose and navigate pages.
参考来源
- 位置:《Database Internals》Chapter 3. File Formats(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch03.html#file_formats,段 5)
- 结论依据:原文用管理页和计算指针定义磁盘 B 树的实现视角,并展开空间、读取和写入约束。
- 原始内容:The semantics of pointer management in on-disk structures are somewhat different from in-memory ones. It is useful to think of on-disk B-Trees as a page management mechanism: algorithms have to compose and navigate pages.