知识卡片
快照隔离仍可能写偏斜
事务以启动时已提交状态为稳定快照,提交时同一数据项的并发修改只允许一方成功,因此防止该项的丢失更新。两个事务一同读取跨项约束、各自写不同项时,写集合没有相交,两者仍可提交;快照一致只描述各自看到的历史。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Isolation Levels · 查看原书依据
Some databases use snapshot isolation. Under snapshot isolation, a transaction can observe the state changes performed by all transactions that were committed by the time it has started.
参考来源
- 位置:《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#isolation_levels,段 167)
- 结论依据:第 167–169 段明确同值写冲突和独立写入的差别。
- 原始内容:Some databases use snapshot isolation. Under snapshot isolation, a transaction can observe the state changes performed by all transactions that were committed by the time it has started.