MySQL Forums
Forum List  »  InnoDB

deadlock for mixed row and table lock?
Posted by: Andrew Nuss
Date: January 12, 2013 11:43AM

Hi,

Using InnoDB. 2 Tables, call them A and B, which are used in conjunction to define my "tree" relationships. I always make sure in all transactions to update A and THEN update B.

However, in many:

I do row updates on rows of A (sorted by id) (row lock) and then inserts on B (assume table lock) while in others I do inserts on A (assume table lock) and then updates on rows of B (sorted by id).

Am I safe against deadlock?

Andy

Options: ReplyQuote


Subject
Views
Written By
Posted
deadlock for mixed row and table lock?
1582
January 12, 2013 11:43AM


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.