seniorT-SQL

What is query plan regression and how do you fix it?

Updated May 17, 2026

Short answer

Plan regression occurs when a new execution plan performs worse than a previous one.

Deep explanation

Plan regression happens after schema changes, stats updates, or parameter shifts. SQL Server may choose a suboptimal plan due to changes in cardinality estimates or missing indexes. Query Store is commonly used to detect and force last good plans.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More T-SQL interview questions

View all →