Query-Performance

Category: query-performance

Slowing Down Your Motor Mouth - Presentation Tips for Fast Talkers

Slowing Down Your Motor Mouth - Presentation Tips for Fast Talkers

on November 20, 2017

Are you worried that you talk too fast when you give a speech, talk, or presentation?

In this episode, I give you simple, practical tips that I’ve used to successfully improve the way I give presentations. Four years ago, I got frustrated feedback from listeners who had a hard time keeping up with my mouth; now I get congratulations that the pace was great.

Continue reading

How Do I Analyze a SQL Server Execution Plan?

How Do I Analyze a SQL Server Execution Plan?

on September 22, 2017

A query is slow, and you figure out how to collect the query execution plan. Now what?

In this video, I talk “big picture” about what execution plans are, what “cost” is, why to collect “compiled for” values, and the steps I take to analyze execution plans while performance tuning queries.

Continue reading

Do Index Changes Remove Execution Plans from Cache?

Do Index Changes Remove Execution Plans from Cache?

When you modify the indexes on a table, SQL Server needs to reconsider how it executes queries that reference that table. But the way this appears when you’re looking at your execution plan cache is far from obvious:

  • Impacted query plans are NOT removed from cache at the time you change an index. The next time the query is executed, it will be recompiled, and the new plan and related execution information will be placed in cache.
  • This is true whether or not the index is used by the query.
  • Even if the index is on columns in the table which are not referenced by the query, the query will recompile on the next run.

To see this in action, you can play along with this sample script.

Continue reading

Did that Query Eliminate Partitions? (videos)

Did that Query Eliminate Partitions? (videos)

Table partitioning makes execution plans a bit more confusing.

Free Course

I have a free online course which walks you through decoding execution plans, including whether or not partition elimination occurred.

Continue reading

New Free Webcasts on Interviewing and Indexing

New Free Webcasts on Interviewing and Indexing

on June 29, 2017

Sharpen your performance tuning and indexing skills this summer, for free, one week at a time!

Continue reading

Join me for Why Did My Clever Index Change Backfire? at the 24 Hours of PASS

Join me for Why Did My Clever Index Change Backfire? at the 24 Hours of PASS

on June 23, 2017

You’ve got a performance problem and you know just the cool index trick that will fix it!

Until it goes utterly wrong.

Join me for this free session in the 24 hours of PASS to see multiple quick demos of index changes that seem like a great idea… until they either don’t work, or make things worse.

How to sign up

My session is on Wed, July 19, 9 am Pacific / 12 pm Eastern / 4pm UTC.

Continue reading

When does physical reads include read-ahead reads in SQL Server?

When does physical reads include read-ahead reads in SQL Server?

SQL Server has more than one way to pull pages in from disk for your queries. SQL Server can do a physical read of an 8KB page, or an extent of 8 ย of those 8KB pages.

Continue reading