Skip to content

Commit 9a026de

Browse files
authored
Update sp_BlitzIndex.sql
Removed columns we don't need from prior versions.
1 parent bd9f84a commit 9a026de

File tree

1 file changed

+0
-72
lines changed

1 file changed

+0
-72
lines changed

sp_BlitzIndex.sql

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,25 +1473,13 @@ BEGIN TRY
14731473
, leaf_insert_count bigint
14741474
, leaf_delete_count bigint
14751475
, leaf_update_count bigint
1476-
, leaf_ghost_count bigint
1477-
, nonleaf_insert_count bigint
1478-
, nonleaf_delete_count bigint
1479-
, nonleaf_update_count bigint
1480-
, leaf_allocation_count bigint
1481-
, nonleaf_allocation_count bigint
1482-
, leaf_page_merge_count bigint
1483-
, nonleaf_page_merge_count bigint
14841476
, range_scan_count bigint
14851477
, singleton_lookup_count bigint
14861478
, forwarded_fetch_count bigint
14871479
, lob_fetch_in_pages bigint
14881480
, lob_fetch_in_bytes bigint
1489-
, lob_orphan_create_count bigint
1490-
, lob_orphan_insert_count bigint
14911481
, row_overflow_fetch_in_pages bigint
14921482
, row_overflow_fetch_in_bytes bigint
1493-
, column_value_push_off_row_count bigint
1494-
, column_value_pull_in_row_count bigint
14951483
, row_lock_count bigint
14961484
, row_lock_wait_count bigint
14971485
, row_lock_wait_in_ms bigint
@@ -1504,18 +1492,6 @@ BEGIN TRY
15041492
, page_latch_wait_in_ms bigint
15051493
, page_io_latch_wait_count bigint
15061494
, page_io_latch_wait_in_ms bigint
1507-
, tree_page_latch_wait_count bigint
1508-
, tree_page_latch_wait_in_ms bigint
1509-
, tree_page_io_latch_wait_count bigint
1510-
, tree_page_io_latch_wait_in_ms bigint
1511-
, page_compression_attempt_count bigint
1512-
, page_compression_success_count bigint
1513-
, version_generated_inrow bigint
1514-
, version_generated_offrow bigint
1515-
, ghost_version_inrow bigint
1516-
, ghost_version_offrow bigint
1517-
, insert_over_ghost_version_inrow bigint
1518-
, insert_over_ghost_version_offrow bigint
15191495
)
15201496

15211497
SET @dsql = N'
@@ -1582,25 +1558,13 @@ BEGIN TRY
15821558
, leaf_insert_count
15831559
, leaf_delete_count
15841560
, leaf_update_count
1585-
, leaf_ghost_count
1586-
, nonleaf_insert_count
1587-
, nonleaf_delete_count
1588-
, nonleaf_update_count
1589-
, leaf_allocation_count
1590-
, nonleaf_allocation_count
1591-
, leaf_page_merge_count
1592-
, nonleaf_page_merge_count
15931561
, range_scan_count
15941562
, singleton_lookup_count
15951563
, forwarded_fetch_count
15961564
, lob_fetch_in_pages
15971565
, lob_fetch_in_bytes
1598-
, lob_orphan_create_count
1599-
, lob_orphan_insert_count
16001566
, row_overflow_fetch_in_pages
16011567
, row_overflow_fetch_in_bytes
1602-
, column_value_push_off_row_count
1603-
, column_value_pull_in_row_count
16041568
, row_lock_count
16051569
, row_lock_wait_count
16061570
, row_lock_wait_in_ms
@@ -1613,18 +1577,6 @@ BEGIN TRY
16131577
, page_latch_wait_in_ms
16141578
, page_io_latch_wait_count
16151579
, page_io_latch_wait_in_ms
1616-
, tree_page_latch_wait_count
1617-
, tree_page_latch_wait_in_ms
1618-
, tree_page_io_latch_wait_count
1619-
, tree_page_io_latch_wait_in_ms
1620-
, page_compression_attempt_count
1621-
, page_compression_success_count
1622-
, version_generated_inrow
1623-
, version_generated_offrow
1624-
, ghost_version_inrow
1625-
, ghost_version_offrow
1626-
, insert_over_ghost_version_inrow
1627-
, insert_over_ghost_version_offrow
16281580
)
16291581
16301582
select os.database_id
@@ -1635,25 +1587,13 @@ BEGIN TRY
16351587
, os.leaf_insert_count
16361588
, os.leaf_delete_count
16371589
, os.leaf_update_count
1638-
, os.leaf_ghost_count
1639-
, os.nonleaf_insert_count
1640-
, os.nonleaf_delete_count
1641-
, os.nonleaf_update_count
1642-
, os.leaf_allocation_count
1643-
, os.nonleaf_allocation_count
1644-
, os.leaf_page_merge_count
1645-
, os.nonleaf_page_merge_count
16461590
, os.range_scan_count
16471591
, os.singleton_lookup_count
16481592
, os.forwarded_fetch_count
16491593
, os.lob_fetch_in_pages
16501594
, os.lob_fetch_in_bytes
1651-
, os.lob_orphan_create_count
1652-
, os.lob_orphan_insert_count
16531595
, os.row_overflow_fetch_in_pages
16541596
, os.row_overflow_fetch_in_bytes
1655-
, os.column_value_push_off_row_count
1656-
, os.column_value_pull_in_row_count
16571597
, os.row_lock_count
16581598
, os.row_lock_wait_count
16591599
, os.row_lock_wait_in_ms
@@ -1666,18 +1606,6 @@ BEGIN TRY
16661606
, os.page_latch_wait_in_ms
16671607
, os.page_io_latch_wait_count
16681608
, os.page_io_latch_wait_in_ms
1669-
, os.tree_page_latch_wait_count
1670-
, os.tree_page_latch_wait_in_ms
1671-
, os.tree_page_io_latch_wait_count
1672-
, os.tree_page_io_latch_wait_in_ms
1673-
, os.page_compression_attempt_count
1674-
, os.page_compression_success_count
1675-
, os.version_generated_inrow
1676-
, os.version_generated_offrow
1677-
, os.ghost_version_inrow
1678-
, os.ghost_version_offrow
1679-
, os.insert_over_ghost_version_inrow
1680-
, os.insert_over_ghost_version_offrow
16811609
from ' + QUOTENAME(@DatabaseName) + N'.sys.dm_db_index_operational_stats('+ CAST(@DatabaseID AS NVARCHAR(10)) +', NULL, NULL,NULL) AS os
16821610
OPTION ( RECOMPILE , min_grant_percent = 1);
16831611

0 commit comments

Comments
 (0)