将其设定为ON表示禁止锁定索引记录前的间隙,也即禁用间隙锁,InnoDB仅使用索引记录锁(index-record lock)进行索引搜索或扫描,不过,这并不禁止InnoDB在执行外键约束检查或重复键检查时使用间隙锁。
基于12个网页-相关网页
索引记录锁
Index record lock
以上为机器翻译结果,长、整句建议使用 人工翻译 。
间隙锁之所以会冲突,是因为当一条记录从索引中移除,不同的事务在这条记录上加的锁就必须合并。
The reason conflicting gap locks are allowed is that if a record is purged from an index, the gap locks held on the record by different transactions must be merged.
youdao
应用推荐
模块上移
模块下移
不移动