Skip to content

Commit a3bb707

Browse files
authored
#1991 sp_BlitzIndex simplify missing indexes (#2002)
Skips the high/low benefit stuff. Closes #1991.
1 parent f170798 commit a3bb707

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sp_BlitzIndex.sql

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3423,16 +3423,12 @@ BEGIN;
34233423
index_estimated_impact, t.index_size_summary, create_tsql, more_info
34243424
FROM
34253425
(
3426-
SELECT ROW_NUMBER() OVER (ORDER BY mi.is_low, magic_benefit_number DESC) AS rownum,
3426+
SELECT ROW_NUMBER() OVER (ORDER BY magic_benefit_number DESC) AS rownum,
34273427
50 AS check_id,
34283428
sz.index_sanity_id,
34293429
10 AS Priority,
34303430
N'Indexaphobia' AS findings_group,
3431-
N'High value missing index' + CASE mi.is_low
3432-
WHEN 0 THEN N' with High Impact'
3433-
WHEN 1 THEN N' with Low Impact'
3434-
END
3435-
AS finding,
3431+
N'High value missing index' AS finding,
34363432
[database_name] AS [Database Name],
34373433
N'http://BrentOzar.com/go/Indexaphobia' AS URL,
34383434
mi.[statement] +

0 commit comments

Comments
 (0)