Search Results for “adaptive joins”

Bonus Lab: Seeing the Effects of SQL Server 2019 Compat Mode

This lab is left as an extra exercise for the reader if you’d like to do it later on your own. So far in the class, we’ve been using 2017 compatibility mode. If you’d like to see how 2019 performs differently, you can turn on all of the cutting edge features on your version of…

Read More

1.2 How Query Hints Reduce the Stench

In our last module, we hit a wall when we tried to use index tuning to solve a problem where SQL Server had to choose between two different indexes for the same table. Sometimes a date range was more selective, and sometimes a score was more selective. When you’re facing the problem of which index…

Read More

03. Mo Choices, Mo Problems

We’ll talk through the WHERE, FROM, SELECT, JOIN, GROUP BY, and ORDER BY components to understand how they affect parameter sniffing. Then, we’ll layer on more complexity to our parameter sniffing problem by first adding an index (which backfires catastrophically), and then adding more parameters (making SQL Server’s choices even tougher.) Demo Script Transact-SQL /*…

Read More

Mastering Parameter Sniffing

You’ve conquered my Fundamentals of Parameter Sniffing class, and now it’s time to get to work. You know you have parameter sniffing problems in your environment – and now you need to learn how to fix ’em. In this 3-day course, you’ll learn: How to spot the common places where plans diverge: parallelism, memory grants, index…
Read More

Mastering Parameter Sniffing

0 customer reviews
You’ve conquered my Fundamentals of Parameter Sniffing class, and now it’s time to get to work. You know you have parameter sniffing problems in your environment – and now you need to learn how to fix ’em. In this 3-day course, you’ll learn: How to capture good, bad, and terrible plans with the plan cache and…
Read More
Froid

Finding Froid’s Limits: Testing Inlined User-Defined Functions

This week, I’ve been writing about how SQL Server 2019’s bringing a few new features to mitigate parameter sniffing, but they’re more complex than they appear at first glance: adaptive memory grants, air_quote_actual plans, and adaptive joins. Today, let’s talk about another common cause of wildly varying durations for a single query: user-defined functions. Scalar…
Read More

What’s New in SQL Server 2019: 100% Demos

Want to learn more? Check out my recent SQL Server 2019 posts. You haven’t installed SQL Server 2019 yet, and you don’t want to sit through a bunch of slides. You want to see a series of real-world demos focusing on the features of SQL Server 2019 that will make your users happier with as…
Read More

1.5 The Tuning Robots in SQL Server 2017, 2019, and 2022

Each new version of SQL Server has brought a few new automated performance tools: adaptive joins, adaptive memory grants, interleaved execution for MSTVFs, and “automatic tuning” (which is a laughable name given what the feature actually does.) We’ll talk through what each feature does and what it requires, and you’ll see why it didn’t fix…

To access this incredible, amazing content, you gotta get Mastering Query Tuning or Recorded Class Season Pass, or log in if you already shelled out the cash.
Read More

Parameter Fluid Optimization

SQL Server
0
Optimizer Studies I don’t have a real job, which means that if something strikes my fancy, like staring at a spot on the wall for an hour, I can do it. Occasionally things are a bit more inspired, and so I go poking around what SMRT PPL might be up to. All you nice people…
Read More