Тёмный

Watch Brent Tune Queries 2020 

Brent Ozar Unlimited
Подписаться 47 тыс.
Просмотров 24 тыс.
50% 1

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@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!
@andreabruschetta8791
@andreabruschetta8791 Год назад
Very interesting the trick of adding a computed column to let the Query Optimizer use his statistic. Good job, Brent!
@BeRNisira
@BeRNisira 4 года назад
Thanks for your help to the SQL community!
@remyaraman4025
@remyaraman4025 3 года назад
Loved your presentation, Awesome ☺☺ Thank you
@davidp7571
@davidp7571 4 года назад
Fantastic to see your thought process to tuning queries. Thanks for this.
@nitinfulake4464
@nitinfulake4464 3 года назад
Thank you Brent for everything you do for SQL DBA community..You are making a big difference..
@DianeLadouceur
@DianeLadouceur 4 года назад
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!!
@anders21karlsson
@anders21karlsson 4 года назад
Awsome!
@minhhungit_freelancer
@minhhungit_freelancer 4 года назад
hi @Brent I'm using StackOverflow2010 (10GB version) and it does not have function dbo.fnGetPostType
@minhhungit_freelancer
@minhhungit_freelancer 4 года назад
just note, it's okay I can create one for myself
@TheBrentOzar
@TheBrentOzar 4 года назад
Yep, you have to go to the URL in the video to get the code.
@minhhungit_freelancer
@minhhungit_freelancer 4 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7hv4vD7Cfy0.html
@andrewp7497
@andrewp7497 3 года назад
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 4 года назад
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 4 года назад
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 4 года назад
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)
@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!
@trud811
@trud811 4 года назад
Great video, thanks for sharing, just one note - column names are not the same for the original and updated query At ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7hv4vD7Cfy0.html they are “PostType, Posts” At ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-7hv4vD7Cfy0.html 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.” 😊
@PaulSebastianM
@PaulSebastianM 4 года назад
Awesome! How much do your charge?
@BrentOzarUnlimited
@BrentOzarUnlimited 4 года назад
You can click on Consulting or Training at the top of my site if you'd like to hire me. Thanks!
@sanjurofla
@sanjurofla 2 года назад
Awesome! I love how you thinking out loud while tuning!!!
@diegombt
@diegombt 4 года назад
This is awesome, you don't even know how grateful I'm with you. Thanks Brent!
@NearbyCactus
@NearbyCactus 4 года назад
That was awesome!
@TheBrentOzar
@TheBrentOzar 4 года назад
Thanks, glad you liked it!
@Harshk2501
@Harshk2501 4 года назад
Loved that video. Fantastic explanation.
@BrentOzarUnlimited
@BrentOzarUnlimited 4 года назад
Glad you liked it!
@alexmcqueen5563
@alexmcqueen5563 4 года назад
Great work Brent!
@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!
@PunchboxRockers
@PunchboxRockers Год назад
Thank you for providing the free first responder kit. Awesome!
@BrentOzarUnlimited
@BrentOzarUnlimited Год назад
You bet!
@ekhaat
@ekhaat 4 года назад
Would it make a difference replacing "WHERE (u.DownVotes + u.UpVotes + u.Reputation + u.Views) > 1000000" with "WHERE MagicInterestingTotal > 1000000" ?
@TheBrentOzar
@TheBrentOzar 4 года назад
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 4 года назад
Go ahead and download the database to find out. Enjoy!
@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
Просмотров 45 тыс.
Top 10 Developer Mistakes That Won't Scale
1:06:37
Просмотров 12 тыс.
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 910 тыс.
Самая сложная маска…
00:32
Просмотров 1,2 млн
Identifying and Fixing Parameter Sniffing Issues
51:53
Getting Started with the Consultant Toolkit
34:58
Просмотров 9 тыс.
Deadlocks: Lets Do One, Understand It, and Fix It
44:01
Brent Ozar_Watch Brent Tune Queries
1:06:57
Просмотров 64 тыс.
Fundamentals of Stored Procedures
48:05
Просмотров 10 тыс.
TUNING | How it Works
11:50
Просмотров 7 млн
What To Do When SQL Server is Slow   Brent Ozar
58:50
Просмотров 41 тыс.
How to Find Out Whose Queries are Using The Most CPU
56:17
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
Просмотров 910 тыс.