← 返回刚才阅读的位置

知识卡片

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

刷页策略决定撤销与重做

理解等级:高级

steal 允许刷出未提交事务修改,故必须保留撤销信息;no-steal 将未提交修改留在缓存,恢复可降低撤销需求。force 要求提交前刷出所有改过的页,牺牲提交性能以减少重做;no-force 允许提交时页仍未落盘,靠日志重做。两个方向可独立选择,日志持久化与数据页写回也是两个动作。

这张卡片看不懂?

已有反馈 · 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#idm46104532494104,段 119) - 结论依据:第 118–124 段给出两个独立策略和日志义务。 - 原始内容:A recovery method that allows flushing a page modified by the transaction even before the transaction has committed is called a steal policy. A no-steal policy does not allow flushing any uncommitted transaction contents on disk.