Skip to content

Commit 9742259

Browse files
authored
Merge pull request BrentOzarULTD#3925 from BrentOzarULTD/copilot/adjust-size-thresholds-heap-warnings
sp_BlitzIndex: switch Active Heap warning thresholds from row-count bands to size bands
2 parents f5fed65 + 791d169 commit 9742259

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sp_BlitzIndex.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4692,7 +4692,7 @@ BEGIN
46924692
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
46934693
WHERE i.index_id = 0
46944694
AND (i.total_reads > 0 OR i.user_updates > 0)
4695-
AND sz.total_rows >= 100000
4695+
AND sz.total_reserved_MB > 10240
46964696
AND h.[object_id] IS NULL /*don't duplicate the prior check.*/
46974697
OPTION ( RECOMPILE );
46984698

@@ -4731,7 +4731,7 @@ BEGIN
47314731
WHERE i.index_id = 0
47324732
AND
47334733
(i.total_reads > 0 OR i.user_updates > 0)
4734-
AND sz.total_rows >= 10000 AND sz.total_rows < 100000
4734+
AND sz.total_reserved_MB >= 1024 AND sz.total_reserved_MB <= 10240
47354735
AND h.[object_id] IS NULL /*don't duplicate the prior check.*/
47364736
OPTION ( RECOMPILE );
47374737

@@ -4770,7 +4770,7 @@ BEGIN
47704770
WHERE i.index_id = 0
47714771
AND
47724772
(i.total_reads > 0 OR i.user_updates > 0)
4773-
AND sz.total_rows < 10000
4773+
AND sz.total_reserved_MB >= 1 AND sz.total_reserved_MB < 1024
47744774
AND h.[object_id] IS NULL /*don't duplicate the prior check.*/
47754775
OPTION ( RECOMPILE );
47764776

0 commit comments

Comments
 (0)