Intro; Table of Contents; About the Authors; About the Technical Reviewer; Introduction; Chapter 1: What Is Query Store?; Query Store Usefulness; Baselining Performance; What Is a Baseline?; How Query Store Provides a Baseline; Catalog Views; Stabilizing Performance; Troubleshooting Without Query Store Techniques; SQL Server Profiler; SQL Server Profiler Concepts; SQL Server Profiler Event Classes Related to Performance; Server-Side Traces; Disadvantages of SQL Server Profiler or Server-Side Traces over Query Store; Extended Events; Extended Events Concepts
Chapter 2: Overview and Architecture of the Query StoreHow Query Store Works; Collecting Query and Plan Information; Collecting Query Runtime Information and Wait Statistics; General Notes on Data Collection; The Data Collected by Query Store; Query and Query Plan Information; Runtime Information; Wait Statistics; Information About the Query Store; Summary; Chapter 3: Configuring Query Store; Query Store Defaults; Configuration Options; OPERATION_MODE; CLEANUP_POLICY (STALE_QUERY_THRESHOLD_DAYS); DATA_FLUSH_INTERVAL_SECONDS; MAX_STORAGE_SIZE_MB; INTERVAL_LENGTH_MINUTES
Disadvantages of Extended Events over Query StoreDisadvantage of SQL Server Profiler and Server-Side Traces over Extended Events; Lightweight Show Plan Trace Flag; sys.dm_exec_query_plan_stats; DMVs; Disadvantages of DMVs; sp_whoisactive; Wait Statistics; Stabilizing Performance Before Query Store Techniques; Plan Guides/USE PLAN Hint; Updating Statistics; Recompiling Stored Procedures; Removing Plans from the Plan Cache; Query Store: The Game Changer; What Information Is Gathered; What Information Query Store Provides for Us: Use Cases; Automatic Plan Correction; Wait Statistics; Conclusion
Monitoring Desired vs. Actual StateQuery Store Read-Only States; How to Fix Query Store in Error State; Monitoring Space Usage; How to Clear Query Store; Failed Plan Forcing; Removing Plans and Queries; Reset Statistics for a Plan; Conclusion; Chapter 4: Standard Query Store Reports; Regressed Queries Report; Overall Resource Consumption Report; Top Resource Consuming Queries Report; Queries with Forced Plan Report; Queries with High Variation Report; Query Wait Statistics Report; Tracked Queries Report; Conclusion; Chapter 5: Query Store Catalog Views; sys.database_query_store_options
SIZE_BASED_CLEANUP_MODEQUERY_STORE_CAPTURE_MODE; MAX_PLANS_PER_QUERY; WAIT_STATISTICS_CAPTURE_MODE; Changing Configuration Using the GUI; Query Store Configuration Catalog View; Query Store Configuration Best Practices; Parameterization and Query Store; Impact of "Drop and Create" vs. "Alter"; Impact of Database Renaming; Reducing Recovery Times with Trace Flags; Query Store and Memory-Optimized Tables; Configuring Query Store for Natively Compiled Stored Procedures; Enabling and Disabling Automatic Plan Regression Correction (APRC); Maintaining Query Store
0
8
8
8
8
Apply the new Query Store feature to identify and fix poorly performing queries in SQL Server. Query Store is an important and recent feature in SQL Server that provides insight into the details of query execution and how that execution has changed over time. Query Store helps to identify queries that arent performing well, or that have regressed in their performance. Query Store provides detailed information such as wait stats that you need to resolve root causes, and it allows you to force the use of a known good execution plan. With SQL Server 2017 and later you can automate the correction of regressions in performance. Query Store for SQL Server 2019 helps you protect your databases performance during upgrades of applications or version of SQL Server. The book provides fundamental information on how Query Store works and best practices for implementation and use. You will learn to run and interpret built-in reports, configure automatic plan correction, and troubleshoot queries using Query Store when needed. Query Store for SQL Server 2019 helps you master Query Store and bring value to your organization through consistent query execution times and automate correction of regressions. What You'll Learn: Apply best practices in implementing Query Store on production servers Detect and correct regressions in query performance Lower the risk of performance degradation following an upgrade Use tools and techniques to get the most from Query Store Automate regression correction and other uses of Query Store.
Query Store for SQL Server 2019 : Identify and Fix Poorly Performing Queries.