Criteria and method of recovery
|
Statement to use
|
---|---|
If you do not anticipate concurrency conflicts to happen often, then you can recover from this incident by re-executing the failed reply message in a replica.
|
MESSAGE EXECUTE, see MESSAGE EXECUTE.
|
If you anticipate concurrency conflicts to happen often and for the re-execution of the message to fail because of a concurrency conflict, you can execute the message by using pessimistic table-level locking; this ensures the message execution is successful.
In this mode, all other concurrent access to the affected table is blocked until the synchronization message has completed.
|
|
You can configure the reply message to use table-level pessimistic locking when it is initially executed.
|
|
As part of the MESSAGE FORWARD operation, the reply message can use table-level pessimistic locking when it is initially executed.
|
|
solidDB also allows you to define a table to be pessimistically locked using row-level locking. This approach is useful if lots of conflicting updates are expected on the table.
|