Thursday, February 18, 2010

Why read only operations should also be in a transaction?

1.       The transaction can be marked as read-only and any accidental/un-intentional writes can be discovered and fixed

2.       The read operations can be wrapped with a “propagation required” (if a transaction already exists while performing the operation, use it. Else create a new transaction) there by the read operation can participate in write transactions.

No comments: