知识卡片
物理日志与逻辑日志
物理日志记录页镜像或字节变动,能快速把对应页恢复到准确状态;逻辑日志记录按键插入或删除等操作,撤销不必绑死原先字节位置。实现可用物理重做提高恢复速度、逻辑撤销提升正常执行的并发。影子分页则另写未发布副本,用指针切换发布新页。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Operation Versus Data Log · 查看原书依据
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
参考来源
- 位置:《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