Skip to content

Conversation

TooMuchBlue
Copy link
Contributor

A few checks in sp_BlitzIndex were written to filter out tables created in the last 7 days or modified in the last 2 days, but the less-than/greater-than check was reversed. This fixes them.

check_id 21: More Than 5 Percent NC Indexes Are Unused
check_id 29: NC indexes with 0 reads and < 10,000 writes

The relevant lines also had tabs where surrounding lines used spaces, so I fixed that too.

I verified the direction of all other newer/older checks in sp_BlitzIndex and they seem to be correct. I searched the rest of the codebase for similar filters and found none.

…dified within 2 days were reversed, resulting in ONLY reporting on very recent indexes.
Copy link
Member

@BrentOzar BrentOzar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Thanks for the pull request, merging into the dev branch, will be in the next release with credit to you in the release notes.

@BrentOzar BrentOzar merged commit 1b2a980 into BrentOzarULTD:dev Sep 25, 2025
1 check failed
@BrentOzar BrentOzar added this to the 2025-10 Release milestone Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants