Query-Performance

Category: query-performance

Does OPTION (RECOMPILE) Prevent Query Store from Saving an Execution Plan?

Does OPTION (RECOMPILE) Prevent Query Store from Saving an Execution Plan?

on November 25, 2015

Recompile hints have been tough to love in SQL Server for a long time.ย Sometimes it’s very tempting to use these hints to tell the optimizer to generate a fresh execution plan for a query, but there can be downsides.

Continue reading

Did My Query Eliminate Table Partitions in SQL Server?

Did My Query Eliminate Table Partitions in SQL Server?

Working with table partitioning can be puzzling. Table partitioning isn’t always a slam dunk for performance: heavy testing is needed. But even getting started with the testing can be a bit tricky!

Here’s a (relatively) simple example that walks you through setting up a partitioned table, running a query, and checking if it was able to get partition elimination.

Continue reading

SQL Server Filtered Indexes: The Third Index Dimension

SQL Server Filtered Indexes: The Third Index Dimension

on August 11, 2015

One perk to filtered indexes that may not be obvious at first is that you get an extra “dimension”– almost an extra kind of key column. This can be useful for some queries that can be tricky to index.

Continue reading

I laughed, I cried, it was better than CATS: The Fast Track Data Warehouse 3.0 Reference Guide

I laughed, I cried, it was better than CATS: The Fast Track Data Warehouse 3.0 Reference Guide

on March 30, 2011

You know what’s crazy?

A comprehensive, technical, well thought-out, and ENJOYABLE document. One written with the occasional interesting diagram and a reasonable use of acronyms, with effective tables and practical advice. A document that’s written for a human being which has helpful links to supporting documentation, but still makes you think.

Continue reading

The Magic of the Self-Assigned Lab (SQLSkills Immersion Training Days 2 and 3)

The Magic of the Self-Assigned Lab (SQLSkills Immersion Training Days 2 and 3)

on February 24, 2011

Today, more blog from SQLSkillsย Immersion Training on Internals and Performance in Dallas, TX. For more about the training, see my prior post.

Continue reading

From Record Structures To TempDb in 9 Hours or Less (SQLSkills Immersion Training Day 1)

From Record Structures To TempDb in 9 Hours or Less (SQLSkills Immersion Training Day 1)

on February 22, 2011

This week I’m one lucky duck: I’m thrilled to be at SQLSkills Immersion Training on Internals and Performance in Dallas, TX.

Continue reading

Dirty Pages and Statistics IO

Dirty Pages and Statistics IO

Warning: The DROPCLEANBUFFERS command referenced in this post is appropriate for test systems only and impacts the entire SQL Instance. If you are new to SQL Server, please use this commands with care, and be careful to read the linked Books Online documentation. Happy testing!

Continue reading