← 返回刚才阅读的位置

知识卡片

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

物理日志与逻辑日志

理解等级:中级

物理日志记录页镜像或字节变动,能快速把对应页恢复到准确状态;逻辑日志记录按键插入或删除等操作,撤销不必绑死原先字节位置。实现可用物理重做提高恢复速度、逻辑撤销提升正常执行的并发。影子分页则另写未发布副本,用指针切换发布新页。

这张卡片看不懂?

已有反馈 · 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#idm46104532519592,段 114) - 结论依据:第 112–116 段说明影子分页、前后镜像及日志混合。 - 原始内容:We can use a physical log (that stores complete page state or byte-wise changes to it) or a logical log (that stores operations that have to be performed against the current state) to move records or pages