r/SQLServer • u/erinstellato Microsoft Employee • Aug 14 '26
Community Request Friday Feedback - retaining more Query Store data
Hey folks - another Friday, another feedback question about Query Store. I will ask about other QP features, I promise!
If you could keep more Query Store data, without it creating any performance issues, would you? I have a poll below, but as always, feel free to add a comment if the available options don't match what you'd want to see, or if you want to provide more detail. And you'll note, I'm asking about it in terms of time, not size...the two are not linearly related, it's very workload dependent. Perhaps that's a topic for next week.
Thanks as always for your input, and happy back to school 🎒 for those who are in (or about to enter) that phase!
1
u/16stonepig Aug 17 '26
I initially voted 6 months, then thought about use cases and changed it to 12. Some things I can imagine it being very useful for:
-Capacity planning
-Before/after release performance comparisons
-Access/request pattern tracking (user growth, seasonality etc.)
A lot of these can already be done with other tools, but if you're a SQL head, and you live and breathe SSMS and Query Store (as I do) this is a nice one stop shop.
I am assuming that a longer retention would result in aggregated/lower res data for the extended period, or that storage strategy could change - e.g. normalisation change or columnstore indexes etc.
1
u/ClerkBeginning961 Aug 17 '26
Retention would be more useful if it preserved named windows around deployments and incidents, not just a longer rolling horizon. Keep high-resolution plans and runtime stats for those windows, then aggregate the rest. That would make regression comparisons reliable without paying the same storage cost for quiet periods.