Mysql – InnoDB deadlock caused by two transactions holding the same exclusive lock
I am running MySql v8.0 with InnoDB. I have a simple transaction that has a SELECT (not a SELECT ... FOR UPDATE) followed by an INSERT. I'm getting frequent deadlocks when many DB inserts are happening simultaneously. All inserts use…