知识卡片

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

最右指针与高键

理解等级:中级

若一个单元将分隔键与其左侧孩子成对存放,有 N 个键的节点仍需另存第 N+1 个最右孩子。最右孩子分裂后,原孩子成为新分隔单元的左侧子页,新右兄弟成为新的最右孩子。另可为最右区间存一个高键,明确本页或子树内允许的最高边界。B-link 树可用该边界判断查找是否需要继续向右。

参见 [[兄弟链接的得失]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

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