Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

案例五 最近高并发下有遇到不少 #33

Open
jinpuxiang opened this issue Dec 27, 2023 · 0 comments
Open

案例五 最近高并发下有遇到不少 #33

jinpuxiang opened this issue Dec 27, 2023 · 0 comments

Comments

@jinpuxiang
Copy link

业务表有自增id主键和组合唯一键

insert into on duplicate key update写法
delete from where

操作两个账号的数据时,insert语句可能时二阶段加锁了,会出现了这个死锁特征:
delete WAITING FOR lock_mode X
insert WAITING FOR lock_mode X locks gap before rec insert intention, HOLDS lock_mode X locks rec but not gap

请问您有对insert into on duplicate key update加锁解释的文章吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant