Skip to content

sp_QuickieStore: remove redundant filters from @find_high_impact#711

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/hi-remove-redundant-filters
Mar 24, 2026
Merged

sp_QuickieStore: remove redundant filters from @find_high_impact#711
erikdarlingdata merged 1 commit intodevfrom
fix/hi-remove-redundant-filters

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Removed maintenance NOT EXISTS subquery from Step 1 and Step 3c (~12s)
  • Removed query_plan IS NOT NULL from final OUTER APPLY (~5s)
  • Both are redundant: maintenance hashes are already excluded upstream, and TRY_CONVERT handles NULL plans

Test plan

  • SQL2022 — clean output, all columns populated

🤖 Generated with Claude Code

- Remove maintenance NOT EXISTS subquery from Step 1 aggregate and
  Step 3c representative text (~12s savings). These hashes are already
  filtered out by the main procedure's maintenance exclusion before
  reaching @find_high_impact.
- Remove query_plan IS NOT NULL from the final OUTER APPLY (~5s savings).
  TRY_CONVERT handles NULL plans gracefully in the output.

Tested on SQL2022.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant