Two transactions waiting for each other
Deadlocks appear in the logs a few times a day. Investigating, you find two code paths that each update rows A and B, one in the order A then B and the other B then A.
What is the most robust fix?
Deadlocks appear in the logs a few times a day. Investigating, you find two code paths that each update rows A and B, one in the order A then B and the other B then A.
What is the most robust fix?