Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions sp_QuickieStore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Use the `@expert_mode` parameter to return additional details.
| @include_query_hash_totals | bit | will add an additional column to final output with total resource usage by query hash, may be skewed by query_hash and query_plan_hash bugs with forced plans/plan guides | 0 or 1 | 0 |
| @find_high_impact | bit | finds the vital few queries consuming disproportionate resources across cpu, duration, reads, writes, memory, and executions | 0 or 1 | 0 |
| @primary_window | nvarchar | with @find_high_impact, restricts results to queries whose majority activity is in this window (business, off-hours, or weekend) | business, off-hours, or weekend (any unambiguous prefix works: b, biz, off, overnight, w, wknd, etc.) | NULL |
| @find_parameter_sensitive | bit | finds plan shapes whose runtime metrics swing wildly across executions of the same plan: classic parameter sensitivity | 0 or 1 | 0 |
| @include_maintenance | bit | Set this bit to 1 to add maintenance operations such as index creation to the result set | 0 or 1 | 0 |
| @log_to_table | bit | enable logging to permanent tables instead of returning results | 0 or 1 | 0 |
| @log_database_name | sysname | database to store logging tables | a valid database name | NULL; current database |
Expand Down Expand Up @@ -120,6 +121,16 @@ EXECUTE dbo.sp_QuickieStore
@regression_baseline_end_date = '2025-01-08',
@regression_direction = 'regressed';

-- Find the vital few queries consuming disproportionate resources
EXECUTE dbo.sp_QuickieStore
@find_high_impact = 1;

-- Find parameter sensitive plan shapes: same plan, wildly different runtimes.
-- Results are one row per query_hash + query_plan_hash, ranked by how
-- volatile the @sort_order metric is (coefficient of variation)
EXECUTE dbo.sp_QuickieStore
@find_parameter_sensitive = 1;

-- Expert mode for additional details
EXECUTE dbo.sp_QuickieStore
@expert_mode = 1;
Expand Down
Loading
Loading