MySQL Forums
Forum List  »  InnoDB

Re: deadlock: a row being locked by a query twice?
Posted by: Peter Brawley
Date: April 10, 2016 10:43PM

> We are using stored procedures in our project. So got to use it.

And the sproc uses that crazily inefficient query you first posted? You need to get that changed.

About "exclusive locks", you need to put your writes in transaction blocks coded to retry in the face of deadlock and rollback gracefully on error.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: deadlock: a row being locked by a query twice?
547
April 10, 2016 10:43PM


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.