Go, Go, QueryStore!
Contents The Problems Query Store solutions How the magic works
Have you ever wanted to know… What is the longest running query? What query is, on aggregate, using the most CPU?
Have you ever wanted to know… How was this slow query running yesterday? What waits has this query experienced?
Have you ever wanted to know… What is the busiest time of day? How has my overall resource usage changed over the last month?
Enter the QueryStore A ‘flight data recorder’ for SQL Server query performance Once enabled, captures the execution characteristics and plans for queries running against that database
What is the longest running query?
How was this slow query running yesterday?
What waits has this query incurred?
What is the busiest time of day?
Enabling and Configuring
When the reports aren’t enough sys.query_store_query sys.query_store_query_text sys.query_store_plan sys.query_store_runtime_stats sys.query_store_wait_stats
Resources https://www.sqlskills.com/blogs/erin/category/query- store/ https://sqlbits.com/Sessions/Event14/Query_Store_New_ Query_Tuning_Feature_For_SQL_Server_Azure https://app.pluralsight.com/library/courses/sqlserver- query-store-introduction/table-of-contents https://app.pluralsight.com/library/courses/solving- real-world-problems-sql-server-2016-query- store/table-of-contents
Resources http://sqlinthewild.co.za/ @SQLintheWild SQL Slack - Gilamonster