Query Store: Memory of Plans, Memory of Mistakes
Query Store is SQL Server’s long-term memory: it records plans, decisions, and sometimes mistakes. By retaining query execution history, it allows DBAs to track how performance evolves and learn from regressions. Think of it as a diary of previous days, sometimes full of insights, sometimes regrets.
🧠 How Query Store works
Queries processed by SQL Server may be captured in Query Store, together with execution plans and runtime statistics. Over time, the engine accumulates evidence about which plans performed well and which caused regressions.