Watch Brent Tune Queries - SQLSaturday Oslo

  Рет қаралды 47,136

Brent Ozar Unlimited

Brent Ozar Unlimited

Күн бұрын

Пікірлер: 45
@Randomvideofanatic
@Randomvideofanatic 3 жыл бұрын
There are very few people who could make query tuning enjoyable and entertaining... you, my friend, are one of them! Thank you so much for the information and providing it in an easily memorable way.
@BrentOzarUnlimited
@BrentOzarUnlimited 3 жыл бұрын
Wow, thank you!
@Amy-ve3ke
@Amy-ve3ke 2 жыл бұрын
Quickest video I’ve watched in one hour ?! Can’t believe how much I enjoyed this
@informationtechnology6001
@informationtechnology6001 3 жыл бұрын
Really nice rep I did not feel boring thank you so much and hope to see new videos
@BrentOzarUnlimited
@BrentOzarUnlimited 3 жыл бұрын
Sure, check out my channel. I have several new videos a week. Cheers!
@montro2220
@montro2220 Жыл бұрын
Very good video, I love it presenters say that they are terrible at presenting (me being one of them) and they make the best presentations 😆
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
Thanks for that!
@ranjitsaggy
@ranjitsaggy 2 ай бұрын
You couldn't get the sp to run within few seconds, left the work for your viewers to finish, and yet this was so enjoyable. Its rare someone talks of tech and keeps the humour. I did learn some of the basics of running, so that you! I'll stay tuned.
@georgekopadze791
@georgekopadze791 Жыл бұрын
You are really good presenter and explain clearly what you want us to understand. Well done, I appreciate your effort and please keep doing. Especially advanced topics: optimization, sharding, indexes and etc. thank you
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
Thank you very much! You'll enjoy my training classes where I cover those advanced topics. Go to BrentOzar.com and click Training at the top of the page.
@MiguelNoyaTeixeira
@MiguelNoyaTeixeira 2 жыл бұрын
You’re great…Learned a lot today!
@Bill-et5sk
@Bill-et5sk 6 ай бұрын
So good I watched it twice.
@ZafarIssadeen
@ZafarIssadeen 3 жыл бұрын
You’ve got a great Liam Neeson impression going!
@function888
@function888 9 ай бұрын
Thank you again, that was wonderful to watch!! BTW, can we get the SP to complete in less than 29 seconds on this hardware??
@BrentOzarUnlimited
@BrentOzarUnlimited 9 ай бұрын
Check out my Mastering Query Tuning class where you can learn techniques to help.
@titusm9837
@titusm9837 Жыл бұрын
Soooo what was the right answer?:)))) option recompile? so at least for other locations it would work fast?
@devarakondasankararao3802
@devarakondasankararao3802 Жыл бұрын
The great video sir , thank you
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
You are welcome
@Pastryarchy
@Pastryarchy 4 жыл бұрын
Thank you for this I'm being destroyed by an app at work and this has given me a lot of things to try
@MiningForPies
@MiningForPies 2 жыл бұрын
Did you get it sorted
@danielcraig9349
@danielcraig9349 Жыл бұрын
Very helpful video, though the sound effects and talk of weed over my speakers at work was less than professional..lol
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
Goodness! Best to stay clear of my other videos, then. I'm not boring, for sure, heh.
@mehdighapanvari9950
@mehdighapanvari9950 2 жыл бұрын
Please review your procedure, many thanks.
@Ulmenos
@Ulmenos Жыл бұрын
soooo are we unable to do anything to statistics to improve the estimates?
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
We have a whole class on that! Check out the free Statistics class on our KZbin channel.
@shabeenakhoja4776
@shabeenakhoja4776 4 жыл бұрын
Super helpful, thank you!
@keb777
@keb777 2 жыл бұрын
"I have 5 fingers on this hand and 5 fingers on that hand" - that's suprising)
@michaelsowemimo2405
@michaelsowemimo2405 Жыл бұрын
Skeet Skeet...im sorry i couldnt help myself :P
@voltairend
@voltairend 2 жыл бұрын
Excellent
@VegasJPH
@VegasJPH 2 жыл бұрын
That clippy voice... 😂😂
@hnbright
@hnbright Жыл бұрын
wouldn't it be better to create a stats table where the counts are kept updated, instead of calculating it every time through this query?
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
I'll rephrase your question and see if I understand right: "If I have a slow query, wouldn't it be better to add new tables with the results, keep the results up to date, and then query those new tables instead?"
@hnbright
@hnbright Жыл бұрын
Yes. Although I am totally intrigued by this demo and would try out the same on my sandbox soon.
@Jhv-x4o
@Jhv-x4o 4 жыл бұрын
Thanks!
@coreymagin
@coreymagin 3 жыл бұрын
I love you man.
@BrentOzarUnlimited
@BrentOzarUnlimited 3 жыл бұрын
Hahaha, thanks!
@andrewp7497
@andrewp7497 4 жыл бұрын
So no solution!....emmmm O
@peterlucas5634
@peterlucas5634 4 жыл бұрын
I think the query was designed to be horrible. There are lots of solutions though, my attempt is below. CREATE OR ALTER PROC dbo.rpt_TopUsers_ByLocation @Location NVARCHAR(100), @StartDate DATE, @EndDate DATE AS BEGIN create table #Score (UserID int primary key clustered, PostScore int ) insert into #Score(UserID, PostScore) SELECT u.Id, SUM(isnull(p.Score, 0)) AS PostsScore FROM dbo.Users u LEFT OUTER JOIN dbo.Posts p ON u.Id = p.OwnerUserId AND p.CreationDate BETWEEN @StartDate AND @EndDate WHERE u.Location = @Location GROUP BY u.Id select u.Id, u.DisplayName, u.AboutMe, s.PostScore, SUM(c.Score) AS CommentsScore from dbo.Users u join #Score s on u.Id = s.UserID left join dbo.Comments c ON u.Id = c.UserId AND c.CreationDate BETWEEN @StartDate AND @EndDate group by u.Id, u.DisplayName, u.AboutMe, s.PostScore order by s.PostScore desc END GO
@mouazalem
@mouazalem 2 жыл бұрын
You are lovely :)
@justsidu
@justsidu Жыл бұрын
This video could've been 10minutes. Needs a performance optimization
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
By all means, feel free to release your own! I'd love to see it.
@ZakirHossain-mc1cy
@ZakirHossain-mc1cy Жыл бұрын
I can't remember that I have ever enjoyed any video on such critical issue
@BrentOzarUnlimited
@BrentOzarUnlimited Жыл бұрын
awww, thanks!
Watch Brent Tune Queries 2020
51:32
Brent Ozar Unlimited
Рет қаралды 24 М.
"But It Worked in Development!" - 3 Hard SQL Server Performance Problems
1:11:24
Brent Ozar Unlimited
Рет қаралды 17 М.
Каха и дочка
00:28
К-Media
Рет қаралды 2,2 МЛН
路飞做的坏事被拆穿了 #路飞#海贼王
00:41
路飞与唐舞桐
Рет қаралды 26 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 191 МЛН
УДИВИЛ ВСЕХ СВОИМ УХОДОМ!😳 #shorts
00:49
Deadlocks: Lets Do One, Understand It, and Fix It
44:01
SQLBits
Рет қаралды 38 М.
Identifying and Fixing Parameter Sniffing Issues
51:53
Brent Ozar Unlimited
Рет қаралды 47 М.
Debugging a Complex T-SQL Issue
1:00:54
Brent Ozar Unlimited
Рет қаралды 7 М.
SQL Query Optimization. Why is it so hard to get right?
1:39:24
Brent Ozar Unlimited
Рет қаралды 36 М.
The Top 10 Developer Mistakes That Won't Scale on Microsoft SQL Server
1:37:38
Brent Ozar Unlimited
Рет қаралды 29 М.
Brent Ozar_Watch Brent Tune Queries
1:06:57
SQLugSWE
Рет қаралды 65 М.
What To Do When SQL Server is Slow   Brent Ozar
58:50
DBAFundamentals
Рет қаралды 41 М.
Fundamentals of Stored Procedures
48:05
SQLBits
Рет қаралды 11 М.
How to Think Like the SQL Server Engine
1:40:28
Brent Ozar Unlimited
Рет қаралды 15 М.
Каха и дочка
00:28
К-Media
Рет қаралды 2,2 МЛН