Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ALLOW_PAGE_LOCKS vs DEADLOCKS vs REBUILD INDEXES Expand / Collapse
Author
Message
Posted Thursday, June 4, 2009 3:58 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 6:59 AM
Points: 125, Visits: 1,057
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!
Post #728780
Posted Thursday, June 4, 2009 5:48 AM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Today @ 12:03 AM
Points: 646, Visits: 1,305
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
*******************************************
There are two types of DBAs. Those who has skills and those who have permissions
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #728843
Posted Thursday, June 4, 2009 6:19 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: 2 days ago @ 6:59 AM
Points: 125, Visits: 1,057
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?


Post #728873
Posted Thursday, June 4, 2009 6:34 AM


SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Today @ 12:03 AM
Points: 646, Visits: 1,305
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
*******************************************
There are two types of DBAs. Those who has skills and those who have permissions
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #728884
Posted Monday, April 14, 2014 11:55 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, November 21, 2014 9:34 AM
Points: 604, Visits: 1,309
The option ALLOW_PAGE_LOCKS = OFF will help to avoid parallel query deadlock on rebuild index.
Post #1561610
Posted Monday, April 14, 2014 12:02 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 40,438, Visits: 36,894
Please note: 5 year old thread.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
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

Post #1561615
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse