Skip to content

sp_QuickieCache: CPU tie-breaker for duplicate plans sort#756

Merged
erikdarlingdata merged 1 commit intomainfrom
dev
Apr 6, 2026
Merged

sp_QuickieCache: CPU tie-breaker for duplicate plans sort#756
erikdarlingdata merged 1 commit intomainfrom
dev

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Add total_worker_time DESC as tie-breaker when multiple query hashes share the same plan count
  • Most CPU-expensive duplicates surface first within each tier

Test plan

  • User tested on SQL2022 — sort order correct

🤖 Generated with Claude Code

Within the same plan_count, sort by total_worker_time DESC so the
most expensive query hash surfaces first.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 7b3b0c8 into main Apr 6, 2026
9 checks passed
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