June 4, 2009 at 3:58 am
Hi,
I would like to know if there is a link between any of these 3 things.
Specifically the following:
1. If the index's ALLOW_PAGE_LOCKS is ON, can this lead to more deadlocks?
2. Will setting ALLOW_PAGE_LOCKS to OFF reduce the number of deadlocks?
3. If the index's ALLOW_PAGE_LOCKS is OFF, can I still rebuild the index?
4. Does the ALLOW_PAGE_LOCKS value have any affect on the rebuilding of indexes?
Please help with these 4 questions..
Thanks!
June 4, 2009 at 5:48 am
ALLOW_PAGE_LOCKS can but may not lead you to deadlocks. However if you have a very busy OLTP system, page level locks hits concurrency. But remember, if you disable this there will be more number of locks for SQl server to handle this also can lead total slowdown of system.
ALLOW_PAGE_LOCKS will not affect rebuild (which is essentially drop and create), but you cannot reorganize the index
June 4, 2009 at 6:19 am
Thank you for your info.
Another thing I was wondering about is this:
Will running Rebuilding indexes maintenance plan, decrease the number of deadlocks by any chance?
June 4, 2009 at 6:34 am
Will running Rebuilding indexes maintenance plan, decrease the number of deadlocks by any chance?
Rebuilding index will removes index fragmentation. Fragmentation affects performance. Anything you do to speed up your queries will indirectly help you in terms of deadlocks. But most of the time you need to check isolation level, transaction order across procedures etc, and use appropriate lock hints.
April 14, 2014 at 11:55 am
The option ALLOW_PAGE_LOCKS = OFF will help to avoid parallel query deadlock on rebuild index.
April 14, 2014 at 12:02 pm
Please note: 5 year old thread.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply