Capturing waits by Query Store in SQL Server 2017

As mentioned earlier, Query Store uses CPU time as the main criterion for execution plan comparison. Execution time often differs from CPU time, sometimes very significantly. In production environments, thousands or even hundreds of thousands of queries are running simultaneously and since most of them refer to the same database objects and SQL Server resources are limited, a query is usually not executed at once; during the execution, there are phases where instructions in the query are executed, and phases where the query waits for resources to be available to proceed with the execution. What a query is waiting for is very important information in performance troubleshooting. Unfortunately, ...

Get SQL Server 2017 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.