MySQL Forums
Forum List  »  InnoDB

Re: Locking multiple rows in repeatable read mode
Posted by: Rick James
Date: April 01, 2013 11:02PM

> would it honour the order in which it locks them so I can avoid a deadlock by sorting them?

There is some reason to believe that each connection sorts the ids they are about to lock, there can't be a deadlock.
BTW, IN(...) probably does such a sort for you.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Locking multiple rows in repeatable read mode
543
April 01, 2013 11:02PM


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.