Skip to main content
  • Book
  • © 2022

SQL Server 2022 Query Performance Tuning

Troubleshoot and Optimize Query Performance

Apress

Authors:

  • Shows how to use SQL Server’s toolset to assist in your query tuning efforts

  • Delivers query tuning knowledge for SQL Server not available anywhere else

  • Helps you build a complete skill set around measuring and improving query performance

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
Softcover Book USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, access via your institution.

Table of contents (23 chapters)

  1. Front Matter

    Pages i-xxv
  2. Query Performance Tuning

    • Grant Fritchey
    Pages 1-21
  3. Statistics, Data Distribution, and Cardinality

    • Grant Fritchey
    Pages 121-169
  4. Execution Plan Cache Behavior

    • Grant Fritchey
    Pages 195-224
  5. Query Recompilation

    • Grant Fritchey
    Pages 225-255
  6. Index Architecture

    • Grant Fritchey
    Pages 257-303
  7. Index Behaviors

    • Grant Fritchey
    Pages 305-331
  8. Key Lookups and Solutions

    • Grant Fritchey
    Pages 333-346
  9. Dealing with Index Fragmentation

    • Grant Fritchey
    Pages 347-381
  10. Query Design Analysis

    • Grant Fritchey
    Pages 409-448
  11. Reduce Query Resource Use

    • Grant Fritchey
    Pages 449-470
  12. Blocking and Blocked Processes

    • Grant Fritchey
    Pages 471-514
  13. Causes and Solutions For Deadlocks

    • Grant Fritchey
    Pages 515-536
  14. Memory-Optimized OLTP Tables and Procedures

    • Grant Fritchey
    Pages 567-596

About this book



Troubleshoot slow-performing queries and make them run faster. Database administrators and SQL developers are constantly under pressure to provide more speed. This new edition has been redesigned and rewritten from scratch based on the last 15 years of learning, knowledge, and experience accumulated by the author. The book Includes expanded information on using extended events, automatic execution plan correction, and other advanced features now available in SQL Server. These modern features are covered while still providing the necessary fundamentals to better understand how statistics and indexes affect query performance.


The book gives you knowledge and tools to help you identify poorly performing queries and understand the possible causes of that poor performance. The book also provides mechanisms for resolving the issues identified, whether on-premises, in containers, or on cloud platform providers. You’ll learn about key fundamentals, such as statistics, data distribution, cardinality, and parameter sniffing. You’ll learn to analyze and design your indexes and your queries using best practices that ward off performance problems before they occur. You’ll also learn to use important modern features, such as Query Store to manage and control execution plans, the automated performance tuning feature set, and memory-optimized OLTP tables and procedures. You will be able to troubleshoot in a systematic way. Query tuning doesn’t have to be difficult. This book helps you to make it much easier.







What You Will Learn
  • Use Query Store to understand and easily change query performance
  • Recognize and eliminate bottlenecks leading to slow performance
  • Tune queries whether on-premises, in containers, or on cloud platform providers
  • Implement best practices in T-SQL to minimize performance risk
  • Design in the performance that you need through careful query and index design
  • Understand how built-in, automatic tuning can assist your performance enhancement efforts
  • Protect query performance during upgrades to the newer versions of SQL Server





Who This Book Is For


Developers and database administrators with responsibility for query performance in SQL Server environments, and anyone responsible for writing or creating T-SQL queries and in need of insight into bottlenecks (including how to identify them, understand them, and eliminate them)

Keywords

  • Performance Optimization
  • Query Store
  • Automated Tuning
  • Azure SQL Database
  • Extended Events
  • SQL Server Query Plans
  • SQL Server Execution Plans
  • SQL Server Query Execution Plans
  • SQL Server Performance Best Practices
  • Adaptive Execution Plans
  • Columnstore
  • Cardinality estimation
  • SQL Server Management Studio
  • SQL Server statistics
  • Deadlocks
  • Locking
  • AWS RDS SQL Server
  • Google Cloud Databases SQL Server

Authors and Affiliations

  • Grafton, USA

    Grant Fritchey

About the author

Grant Fritchey is a Microsoft Data Platform MVP and AWS Community Builder. He has more than 30 years of experience in IT technical support, development, and database administration. He currently works as Product Advocate at Red Gate Software. Grant writes articles for publication at SQL Server Central and Simple-Talk. He has published books, including SQL Server Execution Plans and SQL Server 2017 Query Performance Tuning (Apress). He has written chapters for Beginning SQL Server 2012 Administration (Apress), SQL Server Team-based Development, SQL Server MVP Deep Dives Volume 2, Pro SQL Server 2012 Practices (Apress), Expert Performance Indexing in SQL Server (Apress), and Query Store for SQL Server 2019 (Apress). Grant presents live sessions, virtual sessions, and recorded content online and in-person, all around the world.

Bibliographic Information

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
Softcover Book USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access