知识卡片
最右指针与高键
若一个单元将分隔键与其左侧孩子成对存放,有 N 个键的节点仍需另存第 N+1 个最右孩子。最右孩子分裂后,原孩子成为新分隔单元的左侧子页,新右兄弟成为新的最右孩子。另可为最右区间存一个高键,明确本页或子树内允许的最高边界。B-link 树可用该边界判断查找是否需要继续向右。
参见 [[兄弟链接的得失]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 4. Implementing B-Trees Sibling Links · 查看原书依据
If the rightmost child is split and the new cell is appended to its parent, the rightmost child pointer has to be reassigned. As shown in Figure 4-3, after the split, the cell appended to the
参考来源
- 位置:《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#idm46104532986008,段 22)
- 结论依据:原文描述 SQLite 的最右指针替换,再用 PostgreSQL 风格的高键展示明确范围上界。
- 原始内容:If the rightmost child is split and the new cell is appended to its parent, the rightmost child pointer has to be reassigned. As shown in Figure 4-3, after the split, the cell appended to the