MySQL Forums
Forum List  »  InnoDB

Re: Deadlock Detection in InnoDB storage engine
Posted by: Rick James
Date: July 27, 2012 10:30PM

Even 15 seconds is dangerously long if you want to have 5 copies running at the same time.

Plan A:
Use AUTO_INCREMENT instead of a sequence table. It is much simpler and more efficient.

Plan B:
I suggest you get the sequence number _outside_ the transaction.

If you need more help, please provide the whole transaction, plus SHOW CREATE TABLE and SHOW TABLE STATUS for the tables involved.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Deadlock Detection in InnoDB storage engine
1234
July 27, 2012 10:30PM


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.