query-store-volatile-historical-slow-queries-comparison

Installation
SKILL.md

Volatile Query Investigation via Query Store

Purpose

Use this skill to investigate intermittent or persistent slow queries with Query Store:

  • Step 0 — Query Store Health Check: Verify Query Store is enabled, writable, and capturing data.
  • Step 1 — Identify Volatile Queries: Find queries with the highest duration variability (CV%).
  • Step 2 — Interval Comparison: Examine one QueryId across time intervals to see when regressions occurred.
  • Step 3 — Wait Category Breakdown: Attribute slowness to CPU, locks, I/O, memory, network, or parallelism.
  • Step 4 — Aborted/Failed Executions: Surface timeouts, cancellations, deadlocks, and runtime errors.
  • Step 5 — Forced Plan Failure Detection: Detect forced plans that are failing and falling back.
  • Step 6 — Top Queries by Memory Grant: Rank memory-heavy queries and RESOURCE_SEMAPHORE risk.
  • Step 7 — Parameter Sensitivity Detection: Compare multiple plans for the same query to confirm parameter sniffing.

Prerequisites

Installs
31
GitHub Stars
66
First Seen
11 days ago