SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ALLOW_PAGE_LOCKS vs DEADLOCKS vs REBUILD INDEXES


ALLOW_PAGE_LOCKS vs DEADLOCKS vs REBUILD INDEXES

Author
Message
Casper101
Casper101
SSC Eights!
SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)

Group: General Forum Members
Points: 807 Visits: 1311
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!
Roshan Jospeh
Roshan Jospeh
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3185 Visits: 2093
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


http://msdn.microsoft.com/en-us/library/ms188388.aspx

----------------------------------------------------------------------------------------------------------------------------------------------------
Roshan Joe

Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Casper101
Casper101
SSC Eights!
SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)SSC Eights! (807 reputation)

Group: General Forum Members
Points: 807 Visits: 1311
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?
Roshan Jospeh
Roshan Jospeh
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3185 Visits: 2093
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.

----------------------------------------------------------------------------------------------------------------------------------------------------
Roshan Joe

Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
sudhakara
sudhakara
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2434 Visits: 1386
The option ALLOW_PAGE_LOCKS = OFF will help to avoid parallel query deadlock on rebuild index.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)SSC Guru (229K reputation)

Group: General Forum Members
Points: 229960 Visits: 46344
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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search