Optimistic locking
Posted: Sat 28 Mar 2015 23:33
I use pessimitic locking since a long time with your components and Firebird. I never had problems in the past. But recently with version 2.5.3 in sometimes I have some records remaining locked (after a batch update with a lot of records retrieval, udpates and appends).
I want to move to optimistic locking as this is the advised solution.
I tested it with but the changes of user 1 are overwritten by the changes of a second user without error.
I have a Query component with a transaction component.
In the query component I have ImLockDelayed in the lock mode.
In the transaction I refer to a transaction component with IblReadOnlyReadCommitted and in the UpdateTransaction I refer to a transaction component with IblReadCommitted.
I use twice the program and updating a record in the 2 programs. The changes made by the first user are overwritten by the second user.
Can you help me ?
Thanks for your response.
Max.
I want to move to optimistic locking as this is the advised solution.
I tested it with but the changes of user 1 are overwritten by the changes of a second user without error.
I have a Query component with a transaction component.
In the query component I have ImLockDelayed in the lock mode.
In the transaction I refer to a transaction component with IblReadOnlyReadCommitted and in the UpdateTransaction I refer to a transaction component with IblReadCommitted.
I use twice the program and updating a record in the 2 programs. The changes made by the first user are overwritten by the second user.
Can you help me ?
Thanks for your response.
Max.