知识卡片
页内组织减少寻址
块设备读取某个偏移时已经把整块取回,可把候选键和常一起使用的引用装进同一页,在内存里完成页内判断。磁盘引用是文件位置,常须预计算或先存到内存待刷盘;跨页搬迁可能引发改址。把二叉节点分组进页能改善局部性,多路页则进一步减少跨页依赖和指针维护。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics On-Disk Structures · 查看原书依据
Besides the cost of disk access itself, the main limitation and design condition for building efficient on-disk structures is the fact that the smallest unit of disk operation is a block.
参考来源
- 位置:《Database Internals》Chapter 2. B-Tree Basics(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch02.html#on_disk_data_structures,段 52)
- 结论依据:原文从读取单个块内引用需取整块,引出重新安排数据结构布局。
- 原始内容:Besides the cost of disk access itself, the main limitation and design condition for building efficient on-disk structures is the fact that the smallest unit of disk operation is a block.