← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 10294.a.5.c.1 · 生成模型:未记录

WiredTiger更新缓冲

理解等级:中级

干净页刚读入时只有基于磁盘页的索引;更新先落入页的内存缓冲,点读通过合并基页与缓冲返回最新值。写回阶段由后台将更新对账成新的页内容,太大时再分裂。跳表形式的缓冲方便并发访问,代价是读取多查一层。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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#wiredtiger,段 33) - 结论依据:第 30–36 段说明磁盘页、更新缓冲和 reconciliation。 - 原始内容:Update buffers are accessed during reads: their contents are merged with the original on-disk page contents to return the most recent data. When the page is flushed, update buffer contents are reconciled with page contents and persisted