知识卡片

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

页内组织减少寻址

理解等级:中级

块设备读取某个偏移时已经把整块取回,可把候选键和常一起使用的引用装进同一页,在内存里完成页内判断。磁盘引用是文件位置,常须预计算或先存到内存待刷盘;跨页搬迁可能引发改址。把二叉节点分组进页能改善局部性,多路页则进一步减少跨页依赖和指针维护。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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.