Window Functions vs Group By

Window Functions vs Group By

Bert Wagner

5 лет назад

25,800 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Andrzej Grzegorczyk
Andrzej Grzegorczyk - 27.11.2022 10:44

Really nice video

Ответить
peporil4
peporil4 - 18.08.2022 14:25

hey, u're great.

Ответить
flyincarpet
flyincarpet - 27.07.2022 09:27

chutiye.. bak bak bak kar raha hai sirf

Ответить
Kronos
Kronos - 09.06.2022 21:44

Quick question
Does something similar happens with PostgreSQL?

Ответить
Sanil Khurana
Sanil Khurana - 13.04.2022 10:28

Hey Bert, great video. Quick question though, is tempdb written to disk or would it be stored only in RAM, and is that dependent on the database/configuration? Is there any reason why we can't store it in RAM(if it isn't already)?

Ответить
lbb2r
lbb2r - 10.12.2021 21:33

Wow, this was eye opening. Had never seen an execution plan before.

Ответить
Arjun U Prabhu
Arjun U Prabhu - 05.03.2021 09:02

Amazing job!!!!

Ответить
Maryam Pashmi
Maryam Pashmi - 09.02.2021 13:43

Is this the same for MySQL?

Ответить
Yogita Singh
Yogita Singh - 02.02.2021 19:55

Thanks a ton!!!!

Ответить
Alireza Ghanbarzadeh
Alireza Ghanbarzadeh - 28.12.2020 18:52

Great Video! enjoyed it a lot, much beneficial. how did u learn to optimize SQL ?

Ответить
Николай Егоров
Николай Егоров - 12.12.2020 22:08

Great content, man. You’ve got really kind eyes

Btw, are we sure optimizer did not cached previous result in a way so it reduces time spent?

Ответить
carolinne rabbi
carolinne rabbi - 08.10.2020 23:17

Very useful, thanks!

Ответить
SpiritOfIndia
SpiritOfIndia - 27.02.2020 15:19

How to get stackoverflow questions alerts to answer a specific badge ?

Ответить
Adam Marcus
Adam Marcus - 28.01.2020 08:28

Wow a good video on SQL..never thought Id see the day.

Ответить
CR King
CR King - 26.01.2020 22:27

Commenting after the first minute because, regardless of how the rest of the video goes, I appreciate that someone is focusing on solving problems when your only lever to pull is your query.

Ответить
Daniel Heydt
Daniel Heydt - 20.10.2019 08:02

Another great video. Thank you! Would you consider doing a video (or videos) diving into the details of writing the queries? I know very little about Windows Functions and have always struggled with this type of query using Group Bys. I never seem to get it just right.

Ответить
David Stricklen Jr
David Stricklen Jr - 30.09.2019 06:38

Do you have an example of how to use a group by instead of a window function with unbounded range preceding? It seems like you have to use the window function in that case, right?

Ответить
Nick Heath
Nick Heath - 17.04.2019 00:44

As a full stack dev (i.e. master of nothing) I find these types of videos really useful. I can understand the SQL and what it is supposed to do, but not always why or how.

Ответить
Stefano Torelli
Stefano Torelli - 16.04.2019 21:33

Bert, I know... but it is very easy to say what is wrong and what is right in such kind of situations... ;)

Ответить
Zanoni Labuschagne
Zanoni Labuschagne - 16.04.2019 20:04

"Black Magic" I say!! I'm downloading the DB now so I can try this out. Thanks for an awesome video. Love these optimization vids. Funny how few developers out there do the basics; change RBAR to set based statements, read the execution plans, and just try to reduce the number of rows. Instead, they just climb in and start slashing at code and configuring SQL and Hardware... It keeps us consultants in business :)

If I may, can I suggest a video on some useful DMVs? I love the "missing index","index usage" and "exec query stats" ones, but there may be more really good ones out there that we can add to our toolkits - there are just so many :)

Ответить
Ben Tulkas
Ben Tulkas - 16.04.2019 17:22

This is great, I often find myself trying both windowed functions and group by, but never really understanding the differences they can potentially have in the optimizer.

Ответить
Mike Moore
Mike Moore - 16.04.2019 15:36

Thanks for putting out these videos. Very informative, I would not have guessed that the optimizer would come up with such different plans.

Ответить