Description
There are cases when a transaction did not acquire any locks (e.g., optimistic read-only transaction). In this case we can simply remove transaction from the local transaction manager, but we are going through all the steps, like prepare and commit/rollback.
This optimization can give serious benefit in read-most use cases, like caching.