Skip to main content
  • Book
  • © 2019

Pro SQL Server 2019 Wait Statistics

A Practical Guide to Analyzing Performance in SQL Server

Apress
  • Helps you identify performance bottlenecks in your SQL Server instance

  • Shows how wait statistics are generated, and how you can access them

  • Provides guidance for lowering the occurrence of high-impact waits

  • 12k Accesses

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (16 chapters)

  1. Front Matter

    Pages i-xxv
  2. Foundations of Wait Statistics Analysis

    1. Front Matter

      Pages 1-1
    2. Wait Statistics Internals

      • Enrico van de Laar
      Pages 3-23
    3. Querying SQL Server Wait Statistics

      • Enrico van de Laar
      Pages 25-61
    4. The Query Store

      • Enrico van de Laar
      Pages 63-73
    5. Building a Solid Baseline

      • Enrico van de Laar
      Pages 75-99
  3. Wait Types

    1. Front Matter

      Pages 101-101
    2. CPU-Related Wait Types

      • Enrico van de Laar
      Pages 103-137
    3. IO-Related Wait Types

      • Enrico van de Laar
      Pages 139-187
    4. Backup-Related Wait Types

      • Enrico van de Laar
      Pages 189-201
    5. Lock-Related Wait Types

      • Enrico van de Laar
      Pages 203-233
    6. Latch-Related Wait Types

      • Enrico van de Laar
      Pages 235-277
    7. High-Availability and Disaster-Recovery Wait Types

      • Enrico van de Laar
      Pages 279-300
    8. Preemptive Wait Types

      • Enrico van de Laar
      Pages 301-325
    9. Background and Miscellaneous Wait Types

      • Enrico van de Laar
      Pages 327-353
    10. In-Memory OLTP–Related Wait Types

      • Enrico van de Laar
      Pages 355-372
    11. Example SQL Server Machine Configurations

      • Enrico van de Laar
      Pages 373-375
    12. Spinlocks

      • Enrico van de Laar
      Pages 377-380
    13. Latch Classes

      • Enrico van de Laar
      Pages 381-390
  4. Back Matter

    Pages 391-399

About this book

Here is a practical guide for analyzing and troubleshooting SQL Server performance using wait statistics. Learn to identify precisely why your queries are running slowly. Measure the amount of time consumed by each bottleneck so that you can focus attention on making the largest improvements first. This edition is updated to cover analysis of wait statistics inside Query Store, the CXCONSUMER wait event, and to be current with SQL Server 2019. Whether you are new to wait statistics, or already familiar with them, this book provides a deeper understanding on how wait statistics are generated and what they can mean for your SQL Server instance’s performance. 

Pro SQL Server 2019 Wait Statistics goes beyond the most common wait types into the more complex and performance-threatening wait types. You’ll learn about per-query wait statistics and session-based wait statistics, and the types of problems they each can help you solve. The different wait types are categorized by their area of impact, including CPU, IO, Lock, and many more.

The book presents clear examples to help you gain practical knowledge of why and how specific wait times increase or decrease, and how they impact your SQL Server’s performance. After reading this book you won’t want to be without the valuable information that wait statistics provide regarding where you should be spending your limited tuning time to maximize performance and value to your business. 


What You'll Learn

  • Identify resource bottlenecks in a running SQL Server instance
  • Locate wait statistics information inside DMVs and Query Store
  • Analyze the root cause of sub-optimal performance
  • Diagnose I/O contention and locking contention
  • Benchmark SQL Server performance
  • Lower the wait time of the most popular wait types


Who This Book Is For

Database administrators who want to identify and resolve performance bottlenecks, those who want to learn more about how the SQL Server engine accesses and uses resources inside SQL Server, and administrators concerned with achieving—and knowing they have achieved—optimal performance





Authors and Affiliations

  • Drachten, The Netherlands

    Enrico van de Laar

About the author

Enrico van de Laar has been working with data in various formats and sizes for over 15 years. He is a data and advanced analytics consultant for Dataheroes where he helps organizations optimize their data platform environment and helps them with their first steps in the world of advanced analytics. He is a Data Platform MVP since 2014 and a frequent speaker on various data-related events throughout the world. He frequently blogs about technologies such as Microsoft SQL Server and Azure Machine Learning on his blog at enricovandelaar.com. You can contact Enrico on Twitter @evdlaar.



Bibliographic Information

  • Book Title: Pro SQL Server 2019 Wait Statistics

  • Book Subtitle: A Practical Guide to Analyzing Performance in SQL Server

  • Authors: Enrico van de Laar

  • DOI: https://doi.org/10.1007/978-1-4842-4916-1

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Professional and Applied Computing (R0), Apress Access Books

  • Copyright Information: Enrico van de Laar 2019

  • eBook ISBN: 978-1-4842-4916-1Published: 03 June 2019

  • Edition Number: 2

  • Number of Pages: XXV, 399

  • Number of Illustrations: 256 b/w illustrations

  • Topics: Database Management

Buy it now

Buying options

eBook USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access