How SQL Server 2019 Helps You Find Queries That Have Missing Index Requests

In the quest for me trying to get people to upgrade to a not-old-and-busted version of SQL Server, this is one that I talk about a lot because it really…

Read the post: How SQL Server 2019 Helps You Find Queries That Have Missing Index Requests

Why Some Types of Parallel Scans can be Slow on Cloud Storage

Upon reading the title, you may be thinking that of course parallel scans will be slow in the cloud. Cloud storage storage simply isn’t very fast.

Read the post: Why Some Types of Parallel Scans can be Slow on Cloud Storage

Using Batch Mode for the “Matching Supply With Demand” Challenge

Itzik Ben-Gan posted an interesting T-SQL challenge on SQL performance dot com. I’m writing up my solution in my own blog post because I have a lot to say…

Read the post: Using Batch Mode for the “Matching Supply With Demand” Challenge

Blocking on Columnstore Indexes that RCSI and NOLOCK Don’t Resolve

I recently ran into a production issue where a SELECT query that referenced a NOLOCK-hinted table was hitting a 30 second query timeout.

Read the post: Blocking on Columnstore Indexes that RCSI and NOLOCK Don’t Resolve

Common Table Expressions Are Useful For Rewriting Scalar Functions In SQL Server

Common Table Expressions Are Useful For Rewriting Scalar Functions In SQL Server: a SQL Server video lesson from Erik Darling of Darling Data.

Read the post: Common Table Expressions Are Useful For Rewriting Scalar Functions In SQL Server

A Silent Bug With Clustered Column Store Indexes And Computed Columns In SQL Server 2019

This bug has been reported to the proper authorities, and this blog post is not to dunk on the Summer Intern responsible for column store indexes, but to…

Read the post: A Silent Bug With Clustered Column Store Indexes And Computed Columns In SQL Server 2019

An Overlooked Benefit Of Batch Mode With Windowing Functions In SQL Server

If you ask people who tune queries why batch mode is often much more efficient with windowing functions, they’ll tell you about the window aggregate…

Read the post: An Overlooked Benefit Of Batch Mode With Windowing Functions In SQL Server

Batch Mode On Row Store vs Batch Mode Tricks For Performance Tuning SQL Server Queries

I think Batch Mode is quite spiffy for the right kind of query, but up until SQL Server 2019, we had to play some tricks to get it:

Read the post: Batch Mode On Row Store vs Batch Mode Tricks For Performance Tuning SQL Server Queries

Experiment With Table Variable Deferred Compilation Without SQL Server 2019

If you haven’t heard by now, Table Variables have some ✌features✌ that can cause performance issues pretty generally in SQL Server.

Read the post: Experiment With Table Variable Deferred Compilation Without SQL Server 2019