Anyway deadlocks cannot be avoid completely, following steps are useful to minimize the chance of generating a deadlock. If deadlocks are less automatically increase transaction throughput and reduce system overhead.
Small transactions are
Steps to reducing deadlocks:
Small transactions are
- Rolled back, undoing all the work performed by the transaction.
- Resubmitted by applications because they were rolled back when deadlocked.
Steps to reducing deadlocks:
- Access the objects in the same order
- Avoid user interaction with in the transactions
- Always keep transactions are short and in one batch
- Better to use a lower isolation level.
- Use snapshot isolation.
- Use bound connections.
- Better to use a row versioning-type isolation level
- Set READ_COMMITTED_SNAPSHOT database option ON to enable read-committed transactions to use row versioning.
-- By Shivasagar V
No comments:
Post a Comment