SQL-Server-First-Responder-Kit icon indicating copy to clipboard operation
SQL-Server-First-Responder-Kit copied to clipboard

sp_BlitzCache - Expensive Sort Warning probably won't work (WILL WORK!)

Open BlitzErik opened this issue 10 years ago • 3 comments

The expensive warnings work for Key Lookups and Remote Queries because they're the final operator in a subtree. For sorts, they can happen anywhere in a plan, so even if their cost is 0, if the underlying branch of the plan has a high EstimatedSubtreeCost, the Sort gets called out as being expensive even if it isn't. I can't think of a way around this, so I'm likely just going to pull this part out. Bummer.

BlitzErik avatar Jun 26 '16 13:06 BlitzErik

Sad face.

BlitzErik avatar Jun 26 '16 13:06 BlitzErik

I was a dumb dummy and I did this dumbly.

I was relying on subtree cost, which made sense for end-of-the-line operators, when I could have just used the CPU + IO cost information that makes up per-operator cost.

image

image

BlitzErik avatar Dec 06 '16 17:12 BlitzErik

Heck yeah

image

image

Glad I didn't delete the landing page from last time!

BlitzErik avatar Dec 06 '16 17:12 BlitzErik