Watch Brent Tune Queries 2020

  Рет қаралды 24,847

Brent Ozar Unlimited

Brent Ozar Unlimited

Күн бұрын

Пікірлер: 41
@nitinfulake4464
@nitinfulake4464 3 жыл бұрын
Thank you Brent for everything you do for SQL DBA community..You are making a big difference..
@luisalfonzogonzalez2265
@luisalfonzogonzalez2265 3 жыл бұрын
This one was intense.. I took a lot of notes. Need a beer now, thanks Brent!
@BrentOzarUnlimited
@BrentOzarUnlimited 3 жыл бұрын
Glad you liked it!
@robertkorth605
@robertkorth605 Жыл бұрын
Didactically one of the best summary in the short time. I already know the trick with the calculated column, but just the overview of how to read the plan and correctly estimate the individual operator costs is worth its weight in gold. Thank you very much!
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
You're welcome!
@sanjurofla
@sanjurofla 2 жыл бұрын
Awesome! I love how you thinking out loud while tuning!!!
@PunchboxRockers
@PunchboxRockers Жыл бұрын
Thank you for providing the free first responder kit. Awesome!
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
You bet!
@andreabruschetta8791
@andreabruschetta8791 2 жыл бұрын
Very interesting the trick of adding a computed column to let the Query Optimizer use his statistic. Good job, Brent!
@remyaraman4025
@remyaraman4025 4 жыл бұрын
Loved your presentation, Awesome ☺☺ Thank you
@wrigh2uk
@wrigh2uk 4 жыл бұрын
Hey brent this was a great class, the computed column stuff was brilliant. Thanks very much
@BrentOzarUnlimited
@BrentOzarUnlimited 4 жыл бұрын
Glad you enjoyed it!
@diegombt
@diegombt 5 жыл бұрын
This is awesome, you don't even know how grateful I'm with you. Thanks Brent!
@davidp7571
@davidp7571 4 жыл бұрын
Fantastic to see your thought process to tuning queries. Thanks for this.
@andrewp7497
@andrewp7497 4 жыл бұрын
Very good video, thanks. I've taken a step up in my skills and knowledge with all you have taught me. Made a slow query run in 160 ms instead of originals 38 seconds today. The satisfaction 💪😁.
@BenReese
@BenReese 5 жыл бұрын
Great to watch and 100% made sense! I wonder, though, if you could have just created the statistics instead of creating a computed column. In-lining the UDF was great too. If that wasn't going to be an option, the original results without the UDF could have been dumped to a #tempTable (parallel plan) then queried out with the UDF call. Great watching someone else work though!
@BrentOzarUnlimited
@BrentOzarUnlimited 5 жыл бұрын
Ben - the cool part about all of my training is that I only use open-source stuff, so you're welcome to download the database and give it a shot to answer your questions. Go for it!
@steveearle9678
@steveearle9678 5 жыл бұрын
Regarding the statistic comment, I thought this also. When it came to it and I tested it, I realised you can't create statistics in the format col1+col2+col3, only on col,col2,col3 (or in the this case, the single computed column)
@alexmcqueen5563
@alexmcqueen5563 5 жыл бұрын
Great work Brent!
@BeRNisira
@BeRNisira 5 жыл бұрын
Thanks for your help to the SQL community!
@Harshk2501
@Harshk2501 4 жыл бұрын
Loved that video. Fantastic explanation.
@BrentOzarUnlimited
@BrentOzarUnlimited 4 жыл бұрын
Glad you liked it!
@anders21karlsson
@anders21karlsson 4 жыл бұрын
Awsome!
@NearbyCactus
@NearbyCactus 5 жыл бұрын
That was awesome!
@TheBrentOzar
@TheBrentOzar 5 жыл бұрын
Thanks, glad you liked it!
@PaulSebastianM
@PaulSebastianM 5 жыл бұрын
Awesome! How much do your charge?
@BrentOzarUnlimited
@BrentOzarUnlimited 5 жыл бұрын
You can click on Consulting or Training at the top of my site if you'd like to hire me. Thanks!
@DianeLadouceur
@DianeLadouceur 5 жыл бұрын
Great video...as usual learn lots from your demo(s). Something worth noting for future videos? Even though I tried following along, using SQL Server 2019, no matter what I did, the estimated and actual number of rows were always the same (yes I switched compatibility levels)...any ideas what the problem was? Okay if you didn't glance at the answer already, startup server parameters (i.e. -T2453 and/or -T4199...forget which one (possibly both))!! Took me a while to figure that one out!!
@ekhaat
@ekhaat 5 жыл бұрын
Would it make a difference replacing "WHERE (u.DownVotes + u.UpVotes + u.Reputation + u.Views) > 1000000" with "WHERE MagicInterestingTotal > 1000000" ?
@TheBrentOzar
@TheBrentOzar 5 жыл бұрын
Download the Stack Overflow database and give 'er a shot. That's why I use these open source tools for training, so you can answer your own questions quickly.
@BrentOzarUnlimited
@BrentOzarUnlimited 5 жыл бұрын
Go ahead and download the database to find out. Enjoy!
@minhhungit_freelancer
@minhhungit_freelancer 5 жыл бұрын
hi @Brent I'm using StackOverflow2010 (10GB version) and it does not have function dbo.fnGetPostType
@minhhungit_freelancer
@minhhungit_freelancer 5 жыл бұрын
just note, it's okay I can create one for myself
@TheBrentOzar
@TheBrentOzar 5 жыл бұрын
Yep, you have to go to the URL in the video to get the code.
@minhhungit_freelancer
@minhhungit_freelancer 5 жыл бұрын
kzbin.info/www/bejne/bZnZZal6bKiZr5I
@trud811
@trud811 4 жыл бұрын
Great video, thanks for sharing, just one note - column names are not the same for the original and updated query At kzbin.info/www/bejne/bZnZZal6bKiZr5I they are “PostType, Posts” At kzbin.info/www/bejne/bZnZZal6bKiZr5I they are “PostTypeName, Posts” It is a small misprint, but if they use some app to call this procedure, it may break it. And depending on the size, bureaucracy and politics in this organisation it can end up with “This guy broke our app, let’s revert his changes and do reindex more often.” 😊
@svorskemattias
@svorskemattias 4 жыл бұрын
Why do you keep saying you don't like us?
@BrentOzarUnlimited
@BrentOzarUnlimited 4 жыл бұрын
Because you've got really bad habits. Get your finger out of your nose. You don't know where that finger's been.
@svorskemattias
@svorskemattias 4 жыл бұрын
@@BrentOzarUnlimited smh
@svorskemattias
@svorskemattias 4 жыл бұрын
Your computed column... it could cause unions or other set operations to fail somewhere else
@BrentOzarUnlimited
@BrentOzarUnlimited 4 жыл бұрын
@@svorskemattias yep, just only so much I can teach per video. I talk about the details of things like that in other videos. One of the toughest things about teaching is wanting to teach everything in every single video - but that's why I teach training classes.
Watch Brent Tune Queries - SQLSaturday Oslo
1:01:54
Brent Ozar Unlimited
Рет қаралды 47 М.
Brent Ozar_Watch Brent Tune Queries
1:06:57
SQLugSWE
Рет қаралды 65 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Watch Brent Run a Parallelism Demo
54:44
Brent Ozar Unlimited
Рет қаралды 7 М.
How to Capture Baselines with sp BlitzFirst
18:44
Brent Ozar Unlimited
Рет қаралды 11 М.
Identifying and Fixing Parameter Sniffing Issues
51:53
Brent Ozar Unlimited
Рет қаралды 48 М.
What To Do When SQL Server is Slow   Brent Ozar
58:50
DBAFundamentals
Рет қаралды 41 М.
Deadlocks: Lets Do One, Understand It, and Fix It
44:01
SQLBits
Рет қаралды 39 М.
Top 10 Developer Mistakes That Won't Scale
1:06:37
Brent Ozar Unlimited
Рет қаралды 12 М.
How to Read Someone Else's Temp Table - then Watch Brent Tune Queries
51:47
Brent Ozar Unlimited
Рет қаралды 4,2 М.
Why Defragmenting Your Indexes Isn’t Helping with Brent Ozar
1:27:29
Microsoft SQL Server Performance Tuning, Live
54:30
Brent Ozar Unlimited
Рет қаралды 117 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН