Last active
October 31, 2017 17:24
-
-
Save ronascentes/27a14c140437d8f7345f0ec26b1e6532 to your computer and use it in GitHub Desktop.
Excessive page splitting can have a significant effect on performance. The following query identifies the top 10 objects involved with page splits (ordering by leaf_allocation_count and referencing both the leaf_allocation_count and nonleaf_allocation_count columns). The leaf_allocation_count column represents page splits at the leaf and the non…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Got from https://blogs.msdn.microsoft.com/sql_pfe_blog/2009/06/11/three-usage-scenarios-for-sys-dm_db_index_operational_stats/ | |
SELECT TOP 10 | |
OBJECT_NAME(object_id, database_id) object_nm, | |
index_id, | |
partition_number, | |
leaf_allocation_count, | |
nonleaf_allocation_count | |
FROM sys.dm_db_index_operational_stats (db_id(), NULL, NULL, NULL) | |
ORDER BY leaf_allocation_count DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment