When Profiling SQL Server Stored Procedures Gets Tricky

  Рет қаралды 351

Erik Darling (Erik Darling Data)

Erik Darling (Erik Darling Data)

Күн бұрын

Пікірлер: 10
@nezbrun872
@nezbrun872 14 күн бұрын
Yes, I totally agree, taking queries apart is a key tool in your toolbelt when analysing and figuring out solutions to non-trivial scenarios. That's a big problem with SQL, it can be, what I, as an old fart, calls "write only", when queries become several pages along, with several dozen joins and subqueries... and I've been doing SQL since 1988, SQL Server in particular since 1991. It's not at all unusual that the only practical way to figure out what the programmer intended is to take the query apart, then reconstruct it... and then test, test, test that you have the same results, with different fully representative datasets, but with results multiple orders of magnitude faster. Getting a query 10% or 100% faster in SQL isn't particularly impressive, and it sometimes shows you've not fully understood the nature of the problem. You should be looking for 10x, 100x, 1000x, 10000x+++ improvements. It's all about the IO, baby. (Oh, and CPU and blocking sometimes too). Thanks so much again for your content.
@Lhord_Neville
@Lhord_Neville 15 күн бұрын
I was surprised, amused and bewildered as per usual, so thanks again for the tidbits.
@Lhord_Neville
@Lhord_Neville 15 күн бұрын
PS I learnt something
@ErikDarlingData
@ErikDarlingData 15 күн бұрын
Just don't forget it.
@Chompingbits
@Chompingbits 15 күн бұрын
One month of a cable bill or half of your streaming services
@ErikDarlingData
@ErikDarlingData 15 күн бұрын
Where do you get cable from?!
@FlaggedStar
@FlaggedStar 16 күн бұрын
I think I've missed the point. What about plain old Extended Events makes this difficult?
@ErikDarlingData
@ErikDarlingData 16 күн бұрын
I don't know how to answer someone who has missed the point and asked a vague question.
@jg7734
@jg7734 16 күн бұрын
It's me, I'm the second "Ick"
@ErikDarlingData
@ErikDarlingData 16 күн бұрын
Hello, Ick.
Performance Pains With NOT IN And NULLable Columns In SQL Server
12:36
Erik Darling (Erik Darling Data)
Рет қаралды 843
Finding Bad Density Vector Estimates In SQL Server
10:00
Erik Darling (Erik Darling Data)
Рет қаралды 324
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Mia Boyka х Карен Акопян | ЧТО БЫЛО ДАЛЬШЕ?
1:21:14
Что было дальше?
Рет қаралды 10 МЛН
Everything You Know About Isolation Levels Is Wrong Promo
8:38
Erik Darling (Erik Darling Data)
Рет қаралды 745
Choosing Between Triggers And Foreign Keys In SQL Server
13:29
Erik Darling (Erik Darling Data)
Рет қаралды 577
Simulating WAITFOR In Scalar UDFs In SQL Server
7:11
Erik Darling (Erik Darling Data)
Рет қаралды 220
How To Use A Numbers Table To Replace WHILE Loops In SQL Server Functions
9:44
Erik Darling (Erik Darling Data)
Рет қаралды 1 М.
Tricky Scalar UDF Rewrites In SQL Server
9:35
Erik Darling (Erik Darling Data)
Рет қаралды 467
Why You Should Always Use Unicode For Dynamic SQL
10:19
Erik Darling (Erik Darling Data)
Рет қаралды 734
A Video For My Friend Brent About Automatic Tuning
10:35
Erik Darling (Erik Darling Data)
Рет қаралды 1 М.
Advanced String Searching In SQL Server
14:31
Erik Darling (Erik Darling Data)
Рет қаралды 1,1 М.
An Advanced SQL Server Query Profiling Technique
11:01
Erik Darling (Erik Darling Data)
Рет қаралды 2 М.
Another Video For My Friend Brent About Automatic Tuning
9:06
Erik Darling (Erik Darling Data)
Рет қаралды 586