Hi *,
I am seeing that SQL is escalating S (shows in query profiler as Intent S) to IX locks, why is this happening Is Sql trying to add some kind of perf tuning/gain!
From my understanding of the theory what starts out as S lock where there are no updates should stay as S locks, or is that a rule that SQL follows if the S locks is applied 'too' many rows of the table and it takes to long it would escalate it to IX Even still confusing with IX what benefit/previledge do we gain as opposed to X lock, I thought intent X was used for hierachial purposes - its not the actual X lock
IX locks appear more in Profile as the load is increased, an observation. My issue with SQL doing escalating is that the escalated IX locks are deadlocking with other legitmately updating sproc that require X locks.
Another question, doing a nolock hint where I can afford dirty read should stop this particular deadlock since SQL cna't escalate it, is this a 'dumb' yet easy win for solving my deadlock issue
Thanks for all your insights.
Regards.
Fola

SQL escalating S lock to IX by itself and later Deadlocking
MeetMe
Hi *,
I am seeing that SQL is escalating S (shows in query profiler as Intent S) to IX locks, why is this happening Is Sql trying to add some kind of perf tuning/gain!
From my understanding of the theory what starts out as S lock where there are no updates should stay as S locks, or is that a rule that SQL follows if the S locks is applied 'too' many rows of the table and it takes to long it would escalate it to IX Even still confusing with IX what benefit/previledge do we gain as opposed to X lock, I thought intent X was used for hierachial purposes - its not the actual X lock
IX locks appear more in Profile as the load is increased, an observation. My issue with SQL doing escalating is that the escalated IX locks are deadlocking with other legitmately updating sproc that require X locks.
Another question, doing a nolock hint where I can afford dirty read should stop this particular deadlock since SQL cna't escalate it, is this a 'dumb' yet easy win for solving my deadlock issue
Thanks for all your insights.
Regards.
Fola
Link