知识卡片
时间戳排序约束读写
为每个值跟踪已读和已写的最大时间戳。早于最新写入的读不能穿越已安装新值。早于最大读时间戳的写会改变较新事务已经读过的历史,需中止;若仅早于已有写时间,Thomas 写规则可忽略已被覆盖的旧写。中止后以新时间戳重试。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Multiversion Concurrency Control · 查看原书依据
Similarly, write operations with a timestamp lower than max_read_timestamp would conflict with a more recent read. However, write operations with a timestamp lower than max_write_timestamp are allowed, since we can safely ignore the outdated written values.
参考来源
- 位置:《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#idm46104532289144,段 192)
- 结论依据:第 190–192 段说明两类最大时间戳与 Thomas 写规则。
- 原始内容:Similarly, write operations with a timestamp lower than max_read_timestamp would conflict with a more recent read. However, write operations with a timestamp lower than max_write_timestamp are allowed, since we can safely ignore the outdated written values.