Advertisement
Intermediate SQL Server, Query Store

How do you use Query Store to identify a query whose performance has regressed after a recent code deployment?

Short answer

You use the Query Store's Regressed Queries report, which compares a query's recent performance against an earlier baseline period, highlighting queries that have become noticeably slower, letting you quickly correlate a performance drop with a specific deployment or data change…

Save SQL Server mock interview
Advertisement
AModel answer
You use the Query Store's Regressed Queries report, which compares a query's recent performance against an earlier baseline period, highlighting queries that have become noticeably slower, letting you quickly correlate a performance drop with a specific deployment or data change rather than manually searching through logs.
Example

-- The Regressed Queries report compares two time periods -- automatically highlighting queries that have gotten slower

Real-world example
A team deploys a new feature and later notices overall application slowness, using the Query Store Regressed Queries report to pinpoint the exact query that started performing significantly worse right after the deployment.
Likely follow-ups
  • How do you configure the specific baseline and recent time periods for this comparison?
  • What should you do once a regressed query has been identified?
Related topics