知识卡片
分裂如何向父页传播
页满后分裂:新建右兄弟并重新分配键,用分界键决定待插入项落左还是落右。叶分裂时右叶首键仍随记录留在叶中,父页得到该边界键的副本与新指针;内部页分裂时中间分隔键提升到父页。父页无处安放新入口就继续分裂;原根溢出时新建根接两页,使树高加一。
参见 [[分隔键的半开区间]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 2. B-Tree Basics B-Tree Node Splits · 查看原书依据
As soon as the tree reaches its capacity (i.e., split propagates all the way up to the root), we have to split the root node.
参考来源
- 位置:《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#b_tree_splits,段 118)
- 结论依据:原文以根溢出说明递归分裂的终点,附近叶与内部节点示例展示分隔键角色。
- 原始内容:As soon as the tree reaches its capacity (i.e., split propagates all the way up to the root), we have to split the root node.