← 返回刚才阅读的位置

知识卡片

结构图卡 · 10295.a.2.a.4.a · 生成模型:未记录

B链树容许半分裂

理解等级:高级

B-link 树为页维护覆盖范围的高键和向右兄弟指针。分裂后先从原页的兄弟链发布新页,父指针可以稍后补齐。若查找循旧父指针落到原页,发现查找键超出高键便继续向右。这个中间状态仍可查全,使下降过程和分裂不必长时间共同持有父闩,代价是偶尔多读一页。

结构图:

flowchart LR
  P[保留旧指针的父页] --> O{原页高键覆盖目标}
  O -->|是| M[查原页]
  O -->|否 沿右链| S[继续查新分裂页]
这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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#b_link_trees,段 257) - 结论依据:第 256–259 段解释高键、半分裂和兄弟指针,说明并发收益。 - 原始内容:Blink-Trees allow a state called half-split, where the node is already referenced by the sibling pointer, but not by the child pointer from its parent. Half-split is identified by checking the node high key.