Skip to content
RED SAG Skills
hardStudy question · answer published in MySQL interview questions, so no pointstransactionsmysqldeadlocks

Deadlock from two concurrent inserts

In MySQL at Repeatable Read, two sessions each run SELECT ... FOR UPDATE for a missing id in the same gap, then each INSERT that id range. Both block and one is killed as a deadlock victim. Why?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions