Query Tuning SQL Server 2019 Part 1: Changing Databases

I’ve always had trouble standing still on SQL Server versions, but most companies don’t. Hardly anyone I talk to is on SQL Server 2017, though these days…

Read the post: Query Tuning SQL Server 2019 Part 1: Changing Databases

In SQL Server 2019 Memory Grants Are Higher With Batch Mode For Row Store Queries

The same sort query asks for more memory under compatibility level 150 than under level 140, and that hurts on Standard Edition, where the buffer pool is…

Read the post: In SQL Server 2019 Memory Grants Are Higher With Batch Mode For Row Store Queries

How OPTIMIZE FOR SEQUENTIAL KEY Improves Highly Concurrent Insert Performance

OPTIMIZE FOR SEQUENTIAL KEY speeds up highly concurrent inserts into an ascending index. I reran my demo with parameters instead of literals, to avoid…

Read the post: How OPTIMIZE FOR SEQUENTIAL KEY Improves Highly Concurrent Insert Performance

How Bad Cardinality Estimates Lead To Bad Query Plan Choices: Does SQL Server 2019 Batch Mode On Rowstore Help?

In the last post, I tried to play some tricks on the optimizer to have Batch Mode make a query faster.

Read the post: How Bad Cardinality Estimates Lead To Bad Query Plan Choices: Does SQL Server 2019 Batch Mode On Rowstore Help?