Skip to content

Commit 9792032

Browse files
CopilotBrentOzar
andauthored
sp_Blitz: suppress tiny fill factor warnings under 20MB
Agent-Logs-Url: https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/sessions/71964c76-5b5e-43c3-9d86-4ebb241fcb9b Co-authored-by: BrentOzar <245462+BrentOzar@users.noreply.github.com>
1 parent 7f2c600 commit 9792032

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sp_Blitz.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7504,7 +7504,9 @@ IF NOT EXISTS ( SELECT 1
75047504
GROUP BY ps.object_id, ps.index_id
75057505
) AS ps ON i.object_id = ps.object_id AND i.index_id = ps.index_id
75067506
WHERE i.fill_factor <> 0 AND i.fill_factor < 80 AND i.is_disabled = 0 AND i.is_hypothetical = 0
7507-
GROUP BY i.fill_factor OPTION (RECOMPILE);';
7507+
GROUP BY i.fill_factor
7508+
HAVING SUM(ISNULL(ps.reserved_page_count, 0)) >= 2560
7509+
OPTION (RECOMPILE);';
75087510
END;
75097511

75107512
IF NOT EXISTS ( SELECT 1

0 commit comments

Comments
 (0)