Adaptive Joins And Local Variables
With new features I really love kicking the tires to see how they work with existing features, and if they fix existing performance troubleshooting scenarios. One issue that I see frequently is with...
View ArticleAdaptive Joins And SARGability
There’s a famous saying Non-SARGable predicates don’t get missing index requests. And that’s true! But can they also stifle my favorite thing to happen to SQL Server since, well, last week? You...
View ArticleBreaking: SQL Server 2016 SP1 CU2 Supports ENABLE_PARALLEL_PLAN_PREFERENCE Hint
Hot Diggety! After reading an excellent tip by Dmitry Pilugin about the new hint for forcing a parallel plan in SQL Server 2017, I figured I’d test it out on SQL Server 2016’s latest CU to see if it...
View ArticleSQL Server 2017: Statistics Information Comes To Query Plans
Warm fuzzies I think this is how my mom would have felt if I went to college. You see, once you stop cargo culting around index fragmentation, and disk queue length, you start to realize which things...
View ArticleSQL Server 2017: Interleaved Execution for MSTVFs
What I don’t want you to take away from this Is that I want you to start using Multi Statement Table Valued Functions all over the place. There are still problems with them. Backed by table variables...
View ArticleSQL Server 2017: Interleaved MSTVFs Vs Inline Table Valued Functions
But is it faster? Now, I know. There are very few “always” things out there in SQL Server. This is also true for functions. A lot of the time — I might even say most of the time, inline table valued...
View ArticleAdaptive Joins And Scalar Valued Functions
I know, I know Here we are in 2017, which means we’re about two years away from the next Ska revival effort, if my watch is correct. I hope it isn’t, but since Brent sent it to me with a note that says...
View ArticleDo SQL Server 2017’s Adaptive Joins Work with Cross Apply or Exists?
I think I’ve mentioned that the most fun part of new features is testing them with old ideas to see how they react. It occurred to me that if Adaptive Joins didn’t work with APPLY, I might cry. So,...
View ArticleWhat Do You Want to See in a Free Query Store Tool?
I love Query Plans No seriously, I love digging into query plans. Even writing XQuery to dig into them in sp_BlitzCache. I was both honored and horrified to take over development of it from Jeremiah....
View ArticleScalar Functions In Views: Where’s The Overhead?
Short winded Quite often people will inherit and rely on views written back in the dark ages, before people were aware of the deleterious effects that scalar valued functions can have on performance....
View ArticleBad Idea Jeans: Multiple Index Hints
I hate that you can do this Here’s the thing: I’m mostly writing this because I didn’t know you could do it. But it’s cool, because it’ll reinforce some other concepts, and I’ll show you why you...
View ArticleDirect Seeding: I’ve Got A Wizard And You Don’t
A commenter commented That the “New AG Wizard” in SSMS 2017 had surfaced the Direct Seeding mode for AGs. I was pretty psyched about this because I think it’s a great feature addition to AGs that can...
View ArticleLogical Errors And Query Performance
Is that a nice way of saying typo? People will often tell you to clearly alias your tables, and they’re right. It will make them more readable and understandable to whomever has to read your code next,...
View ArticleFirst Responder Kit Release: Now With 50% MORE Double Checking
So many things happen in mid-Summer. Dreams. Death. Pit stains. And FRK updates! Special thanks to @digitalohm for once again taking the axe to sp_DatabaseRestore. You are the only person on our email...
View ArticleIntroducing sp_BlitzQueryStore
Oh, so you’re the one While SQL Server 2016 adoption is still pretty low, and 2017 still quite isn’t out yet, that’s no reason to not invest a few days of dev time into a stored procedure that is only...
View ArticleAutomated Tuning And The Future Of Performance Tuners
Before you get too excited This isn’t a dive into any of the new automated tuning features of SQL Server 2017. I’m interested in them because Microsoft thinks they can put us out of business with them,...
View ArticleHyper-V: Getting Your Host And Guest Connected
Because I always forget stuff like this I have a confession to make, dear readers: I am a horrible VM admin. I’m also not great at networking. When I go to set up a VM to do something like install SQL...
View ArticleQuery Plans: Trivial Optimization vs Simple Parameterization
Facemaking You know when you think you know something, and the obviousness of it makes you all the more confident that you know it? That’s usually the first sign that there’s a giant gotcha waiting for...
View ArticleBuilder Day: Cloudbuilding Episode 1 – The Road to HANA
Staving off obsoletion Brent has recently set aside “free” time to learn about stuff up in the cloud. I only put free in quotes because we do have to do something with a cloud theme, but we can pick...
View ArticleTrainable SQL Servers
Funny thing The human body is pretty good at adaptation. When you get sick or injured, your body responds and (most of the time) heals itself up. When you stress your body in a certain way, over time,...
View Article