deadlock for mixed row and table lock?
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
Subject
Views
Written By
Posted
deadlock for mixed row and table lock?
1582
January 12, 2013 11:43AM
708
January 12, 2013 01:51PM
682
January 14, 2013 09:29AM
758
February 13, 2013 03:12PM
669
February 24, 2013 03:39PM
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.