知识卡片
固定树顶与预读叶页
B 树靠近根的页数量少且几乎每次搜索都使用,把它们固定在缓存可减少路径上的磁盘读取。密集发生的分裂和合并先缓存在同一页,可合并为一次物理写。顺序扫描则可提前读下一个叶页,并用专用环形缓冲或及时驱逐维护页,避免一次性读冲掉热页。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Cache Eviction · 查看原书依据
Since each lower B-Tree node level has exponentially more nodes than the higher one, and higher-level nodes represent just a small fraction of the tree, this part of the tree can reside in memory permanently, and other
参考来源
- 位置:《Database Internals》Chapter 5. Transaction Processing and Recovery(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch05.html#idm46104532673432,段 55)
- 结论依据:第 53–58 段解释树上层的热度、结构更新合并和顺序扫描的特殊处理。
- 原始内容:Since each lower B-Tree node level has exponentially more nodes than the higher one, and higher-level nodes represent just a small fraction of the tree, this part of the tree can reside in memory permanently, and other