MySQL Forums
Forum List  »  InnoDB

Re: DeadLock issue in MultiThreading due to foreign key constraint.
Posted by: Rick James
Date: March 09, 2016 09:08PM

Deadlocks happen.

Plan A: Get rid of FOREIGN KEYS.

Plan B: Catch the deadlock and rerun the transaction.

If you would like to discuss this further, please provide the statements -- from BEGIN through COMMIT.

Options: ReplyQuote

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.