MySQL Forums :: InnoDB :: Should ORDER BY SELECTs to to avoid deadlocks?


Advanced Search

Re: Should ORDER BY SELECTs to to avoid deadlocks?
Posted by: Rick James ()
Date: October 03, 2016 10:59PM

I'm afraid you really need to show us the transaction, plus other potentially conflicting transactions.

Even if we can come up with ways to minimize the frequency of deadlocks, we might not be able to totally eliminate them. So, your code must be prepared to start a transaction over from the BEGIN.

Options: ReplyQuote


Subject Views Written By Posted
Should ORDER BY SELECTs to to avoid deadlocks? 469 Victor Porton 09/30/2016 12:52PM
Re: Should ORDER BY SELECTs to to avoid deadlocks? 309 Rick James 10/02/2016 12:33PM
Re: Should ORDER BY SELECTs to to avoid deadlocks? 263 Victor Porton 10/02/2016 12:46PM
Re: Should ORDER BY SELECTs to to avoid deadlocks? 262 Rick James 10/03/2016 10:59PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.