Need help understanding where MySQL deadlocks
We have a long standing problem with a certain deadlock in our DB. The conflicting queries are almost always these two: UPDATE db.tbl SET pid = 68111 WHERE pid IS NULL AND processed IS NULL AND `time` <= now() LIMIT…