Align scoring dimensions between sp_QuickieCache and sp_QuickieStore#757
Merged
erikdarlingdata merged 1 commit intodevfrom Apr 6, 2026
Merged
Conversation
sp_QuickieCache: - Switch scoring from logical reads to physical reads (candidates, shares, PERCENT_RANK, diagnostics) - Add FORMAT with commas to numeric columns in @find_duplicate_plans output - Convert cached plan size from KB to MB in duplicate plans - Constrain ms columns to 3 decimal places sp_QuickieStore @find_high_impact: - Add tempdb (spills) as scoring dimension (2017+ via @new, falls back to 0 on 2016) - Add rows as scoring dimension (all versions) - Scoring goes from 6 to 8 dimensions - Add raw metric totals to output (total_cpu_ms, total_duration_ms, total_physical_reads_mb, total_writes_mb, total_memory_mb, total_tempdb_mb, total_rows, max_dop) - Add tempdb_share, rows_share to output and workload concentration summary Tested on SQL2016, SQL2017, SQL2019, SQL2022, SQL2025. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@find_duplicate_plansoutput; convert cached plan size to MB; constrain ms columns to 3 decimal places@find_high_impact: Add tempdb (spills) and rows as scoring dimensions (6 → 8); add raw metric totals to output to match sp_QuickieCache's detail columns@new(2017+), rows available on all versionsTest plan
avg_tempdb_space_usedcolumn)@find_duplicate_plans,@find_single_use_plans)top_n_tempdb_pctandtop_n_rows_pct🤖 Generated with Claude Code