Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introducing the SQL Server 2016 Query Store

Similar presentations


Presentation on theme: "Introducing the SQL Server 2016 Query Store"— Presentation transcript:

1 Introducing the SQL Server 2016 Query Store
Enrico van de Laar

2 SQLSat Kyiv Team Olena Smoliak Oksana Borysenko Vitaliy Popovych
Yevhen Nedashkivskyi Mykola Pobyivovk

3 3 Sponsor Sessions at 12:40 Don’t miss them, they might be providing some interesting and valuable information! Room A Room B Room C 13: :15 Intapp DB Best NULL 13: :50 Microsoft DevArt JetBrains NULL means no session in that room at that time 

4 Our Awesome Sponsors

5 Session will begin very soon :)
Please complete the evaluation form from your pocket after the session. Your feedback will help us to improve future conferences and speakers will appreciate your feedback! Enjoy the conference!

6 About me Chief Consultant DotNine
Technical Consultant PinkRoccade Healthcare MVP Data Platform Blogger Author @evdlaar

7 Flight recorder or “black box”
Flight recorder or “black box”. The round part is the CSMU (Crash-survivable memory unit) Origin of black box seems to be because early versions were photograph based © aerophotoworks.com

8 The flight recorder can record 25 hours of flight data and 2 hours of conversations
© aerophotoworks.com

9 Flight recorders are virtually indestructible
Flight recorders are virtually indestructible. The can survive an impact of 3400 g’s, an impact force of 3400 times its own weight and can survive for 30 days in salt water. © Manny Ceneta

10 Some data from a flight recorder
© TSB

11 But today we aren’t going to talk about airplane flight recorders but the SQL Server flight recorder: Query Store!

12 Agenda What is this Query Store? Query Store Architecture
Analyzing data inside the Query Store Plan forcing using the Query Store Query Store performance considerations

13 What is this Query Store?

14 What is this Query Store?
New feature in SQL Server 2016 Captures and stores query information on a per-database level Allows query performance analysis using built-in reports and DMVs Retains query history Integrated directly in the SQL Server Engine

15 What is this Query Store?
Why do I think this is one of the best features in SQL Server 2016? Saves time (and money) Makes performance tuning available for everyone* Examples: CE older to new version, Testing software releases, etc

16 Query Store Architecture
Query plans and text are aggressively written to disk to persist them. All of the information on-disk is recorded in the new query store schema in the Primary Filegroup of the user-database. Query Store DMVs and reports can access both the In-memory and on-disk storage.

17 Query Store Architecture
[DEMO] Demo: Enabling Query Store and Query Store configuration

18 Analyzing data inside the Query Store
Two methods available to analyze the data inside the Query Store - Built-in reporting - DMVs Built-in reporting provides additional, easy accessible, features like plan comparison and forcing DMVs are great for programmatically accessing Query Store data

19 Analyzing data inside the Query Store
[DEMO] Demo: Built-in reporting

20 Analyzing data inside the Query Store
DMV overview and relations

21 Analyzing data inside the Query Store
[DEMO] Demo: DMVs

22 Plan Forcing through the Query Store
Next to giving insight into the performance of your queries, we can use the Query Store to force a specific Execution Plan for a regressed query [DEMO] If you ever had to create a plan guide this new option will make your life a lot easier

23 Query Store performance considerations
Performance impact: 3-5% on average Depends on: - Data Flush Interval setting - Amount of (unique) queries - Storage performance - General performance of the box - etc… BUT…your mileage may vary

24 Query Store performance considerations
There are many ways we can monitor the Query Store - Perfmon - Wait Statistics - Extended Events [DEMO]

25 To sum things up Query Store is an incredible powerful addition to SQL Server It helps making analyzing query performance easier Allows you to easily force Execution Plans*

26 Additional reading Monitoring Performance By Using The Query Store ( Simple Talk: “The SQL Server Query Store” article series (

27 Our Awesome Sponsors

28 Download this slide deck and demo scripts from


Download ppt "Introducing the SQL Server 2016 Query Store"

Similar presentations


Ads by Google