Skip to content

Commit 8dad8e3

Browse files
committed
Add writes to unused indexes warning
This is important in deciding if we wanna ditch it or not.
1 parent dd93c1b commit 8dad8e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sp_BlitzIndex.sql

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2835,7 +2835,12 @@ BEGIN;
28352835
N'Unused NC index with High Writes' AS finding,
28362836
[database_name] AS [Database Name],
28372837
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
2838-
N'0 reads: ' + i.db_schema_object_indexid AS details,
2838+
N'Reads: 0,'
2839+
+ N' Writes: '
2840+
+ REPLACE(CONVERT(NVARCHAR(30), CAST((i.user_updates) AS MONEY), 1), N'.00', N'')
2841+
+ N' on: '
2842+
+ i.db_schema_object_indexid
2843+
AS details,
28392844
i.index_definition,
28402845
i.secret_columns,
28412846
i.index_usage_summary,

0 commit comments

Comments
 (0)