Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.4
-
Fix Version/s: None
-
Component/s: Transactions
-
Labels:None
-
Environment:Standard LAMP stack using current SVN from http://svn.doctrine-project.org/branches/1.2/lib/Doctrine/Locking/Manager
Description
When using pessimistic locking as described in:
the locking manager locks the entire table rather than the specific object.
This should be clear from the attached patch which corrects the issue (assuming I have correctly interpreted the intention of pessimistic locking!).
The current behavior will have worked as expected for users but it will have locked far more than was intended and may thus have affected performance.
NB: I can confirm this works for non-composite keys but please review and test for composite keys as I have no such tables to hand.
Folks - just wondering if anyone had a chance to look at this as, while not critical, it does appear to be a genuinely major performance issue.