22-25 April 2026

Query Tuning Telemetry for the Advanced SQL Developer - Part 2

50+50 minute session for SQLBits 2026Saturday - 25 Apr 2026 - 10:00 - 10:50 Room 2B

TL; DR

Learn the hidden internals of query processing and apply those lessons in your SQL applications, diving deep into the algebrizer, simplifier, and query optimizer.

Session Details

You are a skilled SQL developers who knows how to make your SQL statements scream with speed. But now you want to advance that skill by analyzing instance-wide performance and overall workload analysis. As it turns out, SQL Server includes a variety of Extended Events, DMVs, hidden DBCC commands, Trace Flags, and other telemetry to help us. Few people know these secrets. We will examine this seldom used instrumentation through a variety of everyday queries to reveal their overall resource consumption and internal behavior. Lots of examples and demos!

3 things you'll get out of this session

Learn advanced and undocumented methods to see the steps of parsing, binding, algebrizing, simplifing, and query optimization.

Explore the SQL Server internal memo structure to see how SQL Server uses the heuristics of the algebrizer and query optimizer.

Walk through a variety of SQL queries whose behavior can be greatly improved when you apply what you’ve learned about the algebrizer and query optimizer.