知识卡片
读异常来自可见性变化
脏读把未提交、可能回滚的值当作输入;不可重复读是同一事务两次读取同一行时读到不同已提交版本;幻读是两次执行同一个范围查询,符合条件的行集合变化。判断后两者的差别,先看观察的是行值还是谓词命中集合。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Read and Write Anomalies · 查看原书依据
A nonrepeatable read (sometimes called a fuzzy read) is a situation in which a transaction queries the same row twice and gets different results.
参考来源
- 位置:《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,段 154)
- 结论依据:第 152–155 段定义三种读异常及其示例。
- 原始内容:A nonrepeatable read (sometimes called a fuzzy read) is a situation in which a transaction queries the same row twice and gets different results.