知识卡片
WiredTiger更新缓冲
干净页刚读入时只有基于磁盘页的索引;更新先落入页的内存缓冲,点读通过合并基页与缓冲返回最新值。写回阶段由后台将更新对账成新的页内容,太大时再分裂。跳表形式的缓冲方便并发访问,代价是读取多查一层。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 6. B-Tree Variants Lazy B-Trees · 查看原书依据
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
参考来源
- 位置:《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