知识卡片
闩耦合提前释放父页
先持父页闩定位子页并获取子页闩。查找随即释放父闩;插入发现子页未满、删除发现操作不会导致合并时,父页同样安全。若需改上层结构则继续持有相关闩;也可先用共享闩下行,需要分裂或合并才尝试升级,冲突时等待或重走路径。下一页未载入时可先释放父闩,减少在 I/O 上持闩的时间。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Chapter 5. Transaction Processing and Recovery Latch crabbing · 查看原书依据
Latch crabbing is a rather simple method that allows holding latches for less time and releasing them as soon as it’s clear that the executing operation does not require them anymore.
参考来源
- 位置:《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#latch_crabbing,段 241)
- 结论依据:第 240–254 段说明读写放闩条件、缺页和升级。
- 原始内容:Latch crabbing is a rather simple method that allows holding latches for less time and releasing them as soon as it’s clear that the executing operation does not require them anymore.