Go, go Query Store! Gail Shaw.

Slides:



Advertisements
Similar presentations
Native Monitoring packsOps Mgr SP1Ops Mgr R2Ops Mgr 2012 Ops Mgr 2012 Feature PacksN/AOps Mgr 2012 Product Ship.
Advertisements

SQL Server Integration Services 2008 &2012
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
By Shanna Epstein IS 257 September 16, Cnet.com Provides information, tools, and advice to help customers decide what to buy and how to get the.
Troubleshooting SQL Server Performance: Tips &Tools Amit Khandelwal.
Backing Up and Restoring Databases by Using the SQL Server 2000.
20 Copyright © 2008, Oracle. All rights reserved. Cache Management.
Backup and Recovery - II - Checkpoint - Transaction log – active portion - Database Recovery.
SQL for Super Users Presented by: Adam Jacobson Red Three Consulting, Inc.
Why Should I Care About … The Plan Cache? Tuning When Stakeholders Won’t Say Where It Hurts.
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
This document is provided for informational purposes only and Microsoft makes no warranties, either express or implied, in this document. Information.
Session Name Pelin ATICI SQL Premier Field Engineer.
MANAGEMENT DATA WAREHOUSE AND DATA COLLECTOR Ian Lanham.
Managing a database environment in the cloud
Welcome To the 2016 Query Store
You Inherited a Database Now What?
In-Memory Capabilities
On-premise database. Files in the cloud.
Performance Management
Troubleshooting SQL Server high CPU usage
Are You There, DBA? It’s Me, The App Developer.
SQL Server Data Collector From Every Angle
Lead SQL BankofAmerica Blog: SQLHarry.com
Making Developers lives easier with SQL Server 2016
Query Store: Making Sure Your Database Queries Run Optimally
Example of a page header
Query Store What’s it all About? Andrew J. Kelly
SQL Server Monitoring Overview
Making Developers lives easier with SQL Server 2016
Peeking into the Plan Cache with SQL Server 2008
Introduction to Execution Plans
Performance Monitoring Using Extended Events, DMVs & Query Store
Introducing the SQL Server 2016 Query Store
Introducing the SQL Server 2016 Query Store
Dynamics AX Performance
In-Memory OLTP (IMOLTP) What Can It Do For Me?
Microsoft Azure for SQL Server Professionals
Armando Lacerda
Twitter Sr. SQL Premier Field Engineer Twitter LinkedIn: sam mesel Query Store.
Migrating your SQL Server Instance
Introducing the SQL Server 2016 Query Store
SQL Server 2016 Query Data Store
Azure SQL Database - Managing your database on the cloud
TEMPDB – INTERNALS AND USAGE
When I Use NOLOCK AND OTHER HINTS
Armando Lacerda
Targeting Wait Statistics with Extended Events
Stretch Database - Historical data storage in SQL Server 2016
Transaction Log Internals and Performance David M Maxwell
You Inherited a Database Now What?
Introduction to Execution Plans
Microsoft Azure for SQL Server Professionals
CS122B: Projects in Databases and Web Applications Spring 2018
Armando Lacerda
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Jean Joseph DBA/Developer
Armando Lacerda
Rich Benner SQL Server Performance Richbenner.com.
CS122B: Projects in Databases and Web Applications Winter 2018
Introduction to Execution Plans
Database administration
SharePoint Server Assessment Results
Introduction to Execution Plans
Go, Go, QueryStore!.
Analyzing Performance Problems Using XEvents, DMVs & Query Store
Will Query Store fix ‘ALL’ my Performance Issues? Surbhi Pokharna
Gordon McKenna | MVP & CEO | Inframon
Presentation transcript:

Go, go Query Store! Gail Shaw

The Query what? New in SQL 2016 / Azure db version 12 A ‘flight recorder’ for SQL Server queries Aggregated performance information and execution plan Persisted into the database

What magic is this? On compilation, the query and plan are stored in the Query Store When a query is recompiled, the new plan is sent to the Query Store If it’s a different plan to ones already in the Query Store, it’s added When query execution completes, run-time info is sent to the Query Store Data is written to disk in 15-minute intervals (configurable) Run time stats are aggregated, default 60 minutes

But, we’ve already got DMVs The run-time DMVs depend on a query having a plan in cache They don’t record queries run with any recompile setting They’re memory only. Query Store is persisted into the user database Doesn’t rely on plans still being in cache Is included in backups!

Ok, so how do I use it? SSMS 2016 has reports built in Or, lots of catalogue views sys.query_store_query sys.query_store_query_text sys.query_store_plan sys.query_store_runtime_stats sys.query_store_runtime_stats_interval

Uses for Query Store Upgrade tests Identify cases of parameter sniffing or other unstable plan problems Pinpoint the top resource consuming queries, without needing SQLTrace/XE

Further resources Monitoring performance using the Query Store - https://msdn.microsoft.com/en-us/library/dn817826.aspx How the Query Store collects data - https://msdn.microsoft.com/en- us/library/mt631173.aspx https://azure.microsoft.com/en-us/blog/query-store-a-flight-data- recorder-for-your-database/