Answers

Question and Answer:

  Home  MS SQL Server Locks

⟩ Do you know what guidelines should be followed to help minimize deadlocks?

Guidelines to minimize deadlocks:-

Avoid user interaction in the transactions. The transaction must not rely on any inputs from the user.

The concurrent transactions must access data in the same order. There should be consistency in which the operations occur

Transactions must be short and simple to avoid deadlocks. Long transactions may block other necessary activities

A lower isolation level like read committed must be used. Using lower isolation levels reduces the possibility of holding shared locks for a longer time

Bound connections should be used. Here, two or more connections opened by the same application can assist each other.

 166 views

More Questions for you: