Video description
Dive into performance tuning by learning how data is structured and accessed in SQL Server. Learn from this video how to use execution plans, IO metrics, and query timing to identify problematic queries and trace latency directly to missing or incorrect indexes. Also learn about cardinality and how it affects execution plans and overall query performance. Understanding how indexes and statistics work provides a solid foundation for writing better queries and architecting more effective database objects.
The knowledge from this video helps you to dive further into procedural TSQL and identify why a stored procedure or ad-hoc query can perform unexpectedly badly. This video examines such cases through a discussion of the causes of poor performance in TSQL procedures along with solutions such as parameter sniffing. In addition, the video demonstrates how local variables perform differently from parameters and how plan reuse can benefit performance. When plan reuse harms performance, the correct solutions will be presented, allowing you to permanently solve a performance challenge without the use of hacks or temporary fixes.
What You Will Learn
Create effective table indexes with confidence
Identify queries where poor indexing is the cause of latency
Display and use statistical metrics to troubleshoot performance challenges
Optimize and speed up queries that make poor use of indexes
Find and resolve parameter sniffing problems in procedural TSQL
Identify when ad-hoc TSQL or local variables can negatively affect performance
Understand when plan reuse can inadvertently harm performance
Who This Video Is For
Database administrators, developers, and architects who need to write fast and efficient database queries. For database administrators who are asked to troubleshoot slow queries to make them faster. For anyone working against SQL Server who relies upon highly performant queries to perform important tasks.
Table of Contents
Overview
00:02:44
Indexing Basics
00:10:12
Solving Optimization Challenges with Indexes
00:07:20
Filtered Indexes
00:04:36
Index Research and Maintenance
00:07:13
Cardinality and Row Counts
00:06:17
Statistics
00:07:25
Statistics Maintenance
00:06:19
Parameterization Basics
00:06:25
Parameter Sniffing
00:11:56
Conclusion
00:01:55