Scary Scalar Functions

4 posts
Measuring the Scalar UDF Performance Cost

Measuring the Scalar UDF Performance Cost

A Scalar function that does literally nothing still runs over 20 times slower. Here is the proof, measured four different ways.

Deep Dive 8 min read Performance · Query Store
How Scalar Functions Prevent Parallelism

How Scalar Functions Prevent Parallelism

Consultants hate me for this one weird trick. Because I'll be uncovering all the mess Scalar functions can cause in a series of articles.

Deep Dive 6 min read Performance · SQL Server 2022