Indexing and Statistics

Designing, evaluating, maintaining, and troubleshooting indexes and statistics.

568 associated posts270 primary posts

Office Hours: “Read This” Edition

Sometimes when people post questions at https://pollgab.com/room/brento, the answer is just a link, nothing more, nothing less. It doesn't make sense for me to rehash something that's been covered really well online, and I want to link 'em to the best resource possible. Petr: Huge slowdown of basic queries when using a partitioned table (Partition_Key…

Read more about Office Hours: “Read This” Edition 1 comment — Join the discussion

[Video] Halloween Office Hours in Salem, MA

I visited friends in Salem, Massachusetts, home of the 1692 witch trials, and it turns out Salem is a great place to visit around Halloween! There were tours, characters in costume, witch gear shops, and all kinds of spooky-themed happenings.

I sat down outside of the Charter Street Cemetery to take your top-voted questions from https://pollgab.com/room/brento:

Read more about [Video] Halloween Office Hours in Salem, MA 2 comments — Join the discussion

[Video] Office Hours at the Northernmost Town in the World

Despite its location, Hammerfest, Norway attracts countless tourists eager to see the festival celebrating one of the world's favorite rappers. Did I get that right? I'm not sure I got that right. There's also fierce competition for the title of northernmost town: nearby Honningsvåg Norway also wants that claim, but with a population of only…

Read more about [Video] Office Hours at the Northernmost Town in the World Be the first to comment
Production DBA

“Oops, I Lost My Indexes in Azure SQL DB.”

I got an interesting request for consulting, and I'm going to paraphrase it: We were using Azure SQL DB with automatic index tuning enabled for months. Things were going great, but... we just deployed a new version of our code. Our deployment tool made the database schema match our source control, which... dropped the indexes…

Read more about “Oops, I Lost My Indexes in Azure SQL DB.” 12 comments — Join the discussion
Performance Tuning

What’s Faster: IN or OR? Columnstore Edition

Pinal Dave recently ignited a storm of controversy when he quizzed readers about which one of these would be faster on AdventureWorks2019:
[crayon-6a6f35a4ebb35801050555/]
I laughed so hard when I saw the storm of responses on Twitter. People sure do get passionate about this kind of thing. If you ever wanna witness patience and generosity in action, look at Pinal's responses to this tweet.

Read more about What’s Faster: IN or OR? Columnstore Edition 19 comments — Join the discussion