insert on duplicate for update死锁分析
https://blog.csdn.net/li563868273/article/details/105213266/
insert on duplicate key update 如果命中主键或者唯一键索引,加行锁,未命中加gap锁,即会阻塞插入数据
MySQL bug链接https://bugs.mysql.com/bug.php?id=50413

bug在5.7.26以及8.0.15版本上已经修复了,当插入数据时,不会在形成间隙锁 


浙公网安备 33010602011771号