Minimize MS-SQL table deadlocks
There are two SPs perform complicated commands on the same table in our product. Our DBA said he didn't know how to reduce the deadlocks.
After Google the key word 'minimizing deadlocks', I found this official document:
Key-Range Locking
According to above document and this example, if I select data rows by parameter on non-unique index and then perform some operations, I will only lock these rows. Need some tests......
After Google the key word 'minimizing deadlocks', I found this official document:
Key-Range Locking
According to above document and this example, if I select data rows by parameter on non-unique index and then perform some operations, I will only lock these rows. Need some tests......
留言