Click here to monitor SSC
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-Enthusiastic
SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)

Group: General Forum Members
Points: 131 Visits: 1200
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!
joeroshan
joeroshan
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1053 Visits: 1987
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-Enthusiastic
SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)SSC-Enthusiastic (131 reputation)

Group: General Forum Members
Points: 131 Visits: 1200
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?
joeroshan
joeroshan
Ten Centuries
Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)Ten Centuries (1.1K reputation)

Group: General Forum Members
Points: 1053 Visits: 1987
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
SSChasing Mays
SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)SSChasing Mays (624 reputation)

Group: General Forum Members
Points: 624 Visits: 1383
The option ALLOW_PAGE_LOCKS = OFF will help to avoid parallel query deadlock on rebuild index.
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47279 Visits: 44392
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