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
AI Training for Database Teams and SQL Server Performance Tuning
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
Recently I blogged about last page contention solutions, and one thing I mentioned is that turning on OPTIMIZE_FOR_SEQUENTIAL_KEY doesn’t require you to…
Read the post: Enabling Optimize For Sequential Key For A SQL Server Index
This is documented, but I know a lot of people are allergic to documentation, whether it’s writing or reading.
Read the post: SQL Server 2019 Disappointment: sp_estimate_data_compression_savings
SQL Server 2019 batch mode on rowstore lets the optimizer use a hash match aggregate for a scalar aggregate, where row mode plans could only use a stream…
Read the post: Scalar Aggregates Can Use Hash Matches With Batch Mode
Of the new things in SQL Server 2019 that I plan on presenting about, the Batch Mode on Row Store (BMOR, from here) enhancements are probably the most…
Read the post: SQL Server 2019: A Heuristic Evening With The Optimizer
I had a client recently with, wait for it, a performance problem. Or rather, two problems.
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
Let’s say you’re on SQL Server 2019. No, seriously. It’s been out for a couple weeks now.
Read the post: No Column Store Indexes With In-Memory Tempdb For SQL Server? No Problem!
It’s that time of the release cycle again! Microsoft has published the stuff that different editions of SQL Server 2019 will do or not do.
Read the post: SQL Server 2019: Please Increase the RAM Limit For Standard Edition
In dramatic fashion, I’m revisiting something from this post about stats updates.
Read the post: Why Does My Serial Query Plan Have Parallel Wait Stats Like CXPACKET And CXCONSUMER?
SQL Server 2019's scalar UDF inlining does not fix the cardinality estimate for a TOP whose row count comes from a scalar function.
Read the post: Can SQL Server 2019’s Scalar UDF Inlining Fix This Performance Problem?
I mean ever really wondered just how long a query of yours waited on stats to automatically update before running?
Read the post: SQL Server 2019: WAIT_ON_SYNC_STATISTICS_REFRESH
In yesterday’s post, we looked at plans with a good index. The row number queries were unfortunate, but the MAX and TOP 1 queries did really well.
Read the post: The Fastest Ways To Get The Highest Value In SQL Server Part 3
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
OPTIMIZE FOR SEQUENTIAL KEY in SQL Server 2019 targets last page contention, where an ascending key makes every insert fight for the final index page.
Read the post: OPTIMIZE FOR SEQUENTIAL KEY In SQL Server 2019
You can pretend it’s in a stored procedure, and that the date filter is a parameter if you want.
Read the post: SQL Server 2019: If You Want Adaptive Joins, You Need Wider Indexes
This bit of confusion is largely solved in SQL Server 2019 under compatibility level 150, when FROID (scalar udf inlining) kicks in.
In yesterday’s post, we looked at a clever way to reduce calls to a scalar UDF using APPLY.
Read the post: Does SQL Server 2019 Help With Multiple Scalar Function Calls?
That’s why smart people have been working on making them suck less.
Read the post: A Hidden Value Of Apply With SQL Server Scalar UDFs
I’ve trademarked: Froidrage, Froidulent, and Froidpocalypse.
“We recently upgraded to SQL Server 201(4, 6, 7), and performance is AWFUL…”
Read the post: SQL Server 2019: Compatability Level’s Day Of Reckoning
Despite being a bouncer for many years, I have no interest at all in security.
Read the post: SQL Server Scalar UDF Inlining And Security Functions
In the last post, I tried to play some tricks on the optimizer to have Batch Mode make a query faster.
The ELEVATE_ONLINE database scoped configuration in SQL Server 2019 CTP 2.4 turns index rebuilds online without being asked, and in my test that made the…
Read the post: SQL Server 2019 ELEVATE ONLINE Index Operations
SQL Server 2019 CTP 2.4 can store some tempdb metadata in memory to reduce contention, but it does not remove tempdb contention entirely.
Read the post: SQL Server 2019’s In Memory tempdb Improves Performance
Copyright © 2019-2026 Darling Data