知识卡片
LA树分层缓冲批量下推
每个缓冲区服务一棵子树。写先落根缓冲,缓冲满时按目标键复制到对应子树的缓冲;下层同样变满则继续,最终到叶页批量应用插入、更新与删除。把许多针对同一页的改动一次做完也能合并分裂和合并,与按页缓冲有不同粒度。
结构图:
flowchart LR
W[写入] --> R[根缓冲]
R -->|满时按键下推| C[对应子树缓冲]
C -->|满时继续| L[叶页批量更新]
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 6. B-Tree Variants Lazy B-Trees · 查看原书依据
Buffers have hierarchical dependencies and are cascaded: all the updates propagate from higher-level buffers to the lower-level ones. When the updates reach the leaf level, batched insert, update, and delete operations are performed there, applying all changes
参考来源
- 位置:《Database Internals》Chapter 6. B-Tree Variants(book-source:extracted/Database Internals A deep-dive into how distributed data systems work (Alex Petrov)/_epub-src/OEBPS/ch06.html#la_trees,段 42)
- 结论依据:第 38–43 段描述分层下推、批量应用与读取代价。
- 原始内容:Buffers have hierarchical dependencies and are cascaded: all the updates propagate from higher-level buffers to the lower-level ones. When the updates reach the leaf level, batched insert, update, and delete operations are performed there, applying all changes