知识卡片
事务锁与页闩各司其职
事务锁隔离其他事务对键或键范围的逻辑观察,由锁管理器调度,通常持有到事务结束。页闩短暂保护引擎内部页内容、指针和分裂状态,让线程不见半写页。就算事务采用无锁时间戳排序,只要多个线程共享可变物理页仍需要此类同步。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · Locks
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Locks · 查看原书依据
Locks are used to isolate and schedule overlapping transactions and manage database contents but not the internal storage structure, and are acquired on the key.
参考来源
- 位置:《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#idm46104532255400,段 218)
- 结论依据:第 215–223 段对照 key lock 和 page latch 的对象、时长与用途。
- 原始内容:Locks are used to isolate and schedule overlapping transactions and manage database contents but not the internal storage structure, and are acquired on the key.