sp_QuickieStore: add @find_parameter_sensitive mode - #845
Merged
Conversation
Finds plan shapes (query_hash + query_plan_hash) whose runtime metrics swing wildly across executions of the same plan. Ranks shapes by an execution-weighted coefficient of variation built from the previously unused stdev columns, feeds statistics from regular executions only (aborted/exception counted separately), and annotates signals: parameter sensitive, row driven, intermittent waits, memory and tempdb swings, timeouts, PSP variants, and cross-shape divergence. Takeover mode like @find_high_impact: summary result set, one row per shape, plan XML, top waits on 2017+, variant flags on 2022+. Also adds primary keys to both modes' staging temp tables and makes object-name resolution deterministic in both. Tested: 157-assertion matrix on SQL Server 2022 (23 new assertions, including a skewed-workload fixture where the parameter sensitive signal must fire); clean installs and version-gated runs on 2016/2017/2019/2022/2025; real-data validation against StackOverflow databases on 2019, 2022, and 2025. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Claude finished @erikdarlingdata's task in 3m 16s —— View job Reviewing PR #845: sp_QuickieStore: add @find_parameter_sensitive mode
SummaryThis is a large (~2,300 line) but well-contained addition of a new takeover mode. I reviewed the full diff against Correctness
Version gating
Self-containment
Style
Minor, non-blocking observation
Test plan in the PR description (157/157 assertions, multi-version clean installs, real-data validation against StackOverflow/DBA databases) is thorough for a change of this size. |
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
New takeover mode that finds parameter sensitive queries by grouping Query Store runtime stats at the plan-shape grain (query_hash + query_plan_hash) and ranking shapes by how volatile their runtime metrics are.
Also: primary keys on both modes' staging temp tables, and deterministic object-name resolution in both @find_high_impact and the new mode.
Test plan
🤖 Generated with Claude Code