知识卡片
单调键的右端追加
递增键反复命中最右叶,可缓存该叶的位置,验证输入键处于对应范围且页内有空间后直接写。若新项确实位于树的最右且原页已满,可挂起一个近空的右兄弟供随后的右端写入,避免把已满页拆成两个半空页。访问若不再偏向右端,这类优化需要回退到通用查找和页调整。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 4. Implementing B-Trees Right-Only Appends · 查看原书依据
SQLite has a similar concept and calls it quickbalance. When the entry is inserted on the far right end and the target node is full (i.e., it becomes the largest entry in the tree upon insertion),
参考来源
- 位置:《Database Internals》Chapter 4. Implementing B-Trees(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch04.html#immutable_b_tree,段 75)
- 结论依据:原文分别介绍 PostgreSQL 的缓存最右叶和 SQLite 的新分配最右页。
- 原始内容:SQLite has a similar concept and calls it quickbalance. When the entry is inserted on the far right end and the target node is full (i.e., it becomes the largest entry in the tree upon insertion),