知识卡片
丢失更新与脏写
丢失更新中,两个写者先读相同旧值,先提交的修改被另一个从旧值算出的结果覆盖。脏写涉及把尚未提交的修改纳入写入,发生回滚时落盘状态可能依赖一个从未成立的值。写偏斜还可能发生在两个事务写不同记录时。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Read and Write Anomalies · 查看原书依据
A lost update occurs when transactions T1 and T2 both attempt to update the value of V. T1 and T2 read the value of V.
参考来源
- 位置:《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#read_write_anomalies,段 157)
- 结论依据:第 156–159 段依次描述三种写异常。
- 原始内容:A lost update occurs when transactions T1 and T2 both attempt to update the value of V. T1 and T2 read the value of V.