Skip to content

Port warning rule improvements from PerformanceStudio#795

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/warning-improvements-178
Apr 7, 2026
Merged

Port warning rule improvements from PerformanceStudio#795
erikdarlingdata merged 1 commit into
devfrom
fix/warning-improvements-178

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Ports false positive fixes and warning improvements from PerformanceStudio issue #178 (community feedback).

Rule changes (applied identically to Dashboard and Lite):

  • Rule 1 (Filter): Suppress trivial filters — actual: < 128 reads AND < 10ms; estimated: cost < 1.0
  • Rule 3 (Serial Plan): Skip trivial statements (cost < 0.01) — stops warning on 0ms variable assignments
  • Rule 15 (Join OR): Exclude Merge Interval inside anti/semi joins — fixes NOT IN false positive
  • Rule 20 (Local Variables): Skip trivial statements (cost < 0.01)
  • Rule 26 (Row Goal): Require >= 2x reduction — suppresses "1 to 1 (1x reduction)" noise
  • ShowPlanParser: Gate XML MemoryGrantWarning at 1 GB — stops noise on small grants
  • Scalar UDF: Expanded advice — variable assignment, SQL 2019+ automatic inlining

Test plan

  • Build succeeds (0 errors)
  • 257/257 Lite tests pass
  • Dashboard and Lite copies are identical

🤖 Generated with Claude Code

- Rule 1 (Filter): Suppress trivial filters (< 128 reads/10ms actual, < 1.0 cost estimated)
- Rule 3 (Serial Plan): Skip trivial statements with cost < 0.01
- Rule 15 (Join OR): Exclude Merge Interval inside anti/semi joins
- Rule 20 (Local Variables): Skip trivial statements with cost < 0.01
- Rule 26 (Row Goal): Require >= 2x reduction
- ShowPlanParser: Gate XML MemoryGrantWarning at 1 GB
- Scalar UDF: Expanded remediation options (variable assignment, 2019+ inlining)

All changes applied identically to Dashboard and Lite.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 51283a4 into dev Apr 7, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/warning-improvements-178 branch April 9, 2026 00:34
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