知识卡片

普通读书笔记卡 · 10294.a.4.a.5 · 生成模型:未记录

时间戳排序约束读写

理解等级:高级

为每个值跟踪已读和已写的最大时间戳。早于最新写入的读不能穿越已安装新值。早于最大读时间戳的写会改变较新事务已经读过的历史,需中止;若仅早于已有写时间,Thomas 写规则可忽略已被覆盖的旧写。中止后以新时间戳重试。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《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.