Query-Performance

Category: query-performance

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

Internals Matter: Why You Should Check Your Page Verify Settings

Internals Matter: Why You Should Check Your Page Verify Settings

on January 25, 2011

This post is about two things:

1) Your Page Verification Settings are Critical

You should confirm you are running with the correct page verification settings on your SQL Server databases. It’s very important, and I’ll show you why.

2) I Should Attend the Awesome SQLSkills Master Immersion Event - Internals and Performance

My scripts to demo the importance of page verification settings are part of  my entry to win free registration to the SQLSkills Master Immersion Event on Internals and Performance in February. Read more about the training here.

Continue reading