When testing an Alfresco Content Services extension under high levels of concurrency, you notice that some transactions are failing due to locking issues with the database. What is an appropriate way to resolve this?
A.
Manually unlock the offending records and start the testing again.
B.
Directly use Alfresco’s database connection pool and write your own SQL.
C.
Use the RetryingTransactionHelper to retry code that fails due to locking.
D.
Rewrite the queries used by your application to reduce the chance of the lock.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit