Sorting in Postgres 15 is 371% faster in certain cases

preview_player
Показать описание
fantastic gains in Postgres 15! improved sorting by 371%. Normally you can avoid sorting by using an index access path. However, you can’t always have an index on every group by, order by, join or distinct predict. This will come handy. Let us discuss

Resources

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)

Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)

Introduction to NGINX (link redirects to udemy with coupon)

Python on the Backend (link redirects to udemy with coupon)

Become a Member on YouTube

Arabic Software Engineering Channel

🔥 Members Only Content


🏭 Backend Engineering Videos in Order

💾 Database Engineering Videos

🎙️Listen to the Backend Engineering Podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva


Stay Awesome,
Hussein
Рекомендации по теме
Комментарии
Автор

In the balmer days, MS was the 1st or 2nd most despicable company in silicon valley imho
Ive watched Satya Nadella slowly shift my opinion in the other direction, but really its about as fast as I'd imagine possible at a behemoth the size of MS
I think hes worthy of recognition for that, it cant have been easy, or the easy thing to do, and I hope everyone there is rewarded for that.

CraneArmy
Автор

Your videos are amazing, man. Thanks for sharing such a detailed knowledge. Keep it up. I have also purchased your database course. Learnt a lot from it.

sohamnavadiya
Автор

Man, that's really cool, looking forward to take some time and investigate a little more on Postgres new release

rafaelmatsumoto
Автор

Microsoft contributing to Postgres may have to something to do with Citusdb.

arsalankhan
Автор

Thanks for the amazing video.. Union needs to remove repetitions so has to sort (or hash as decided by optimiser) whereas union all will not need to.

jasdeepsinghgrover
Автор

@8:16 wouldn't sorting be necessary for UNION due to the fact it removes duplicates? (but not UNION ALL)

benb.
Автор

UNION - I think it's same as the process of merging 2 sorted arrays. Think of it as how merge sort merges the result of next layer in O(N). If the arrays are not sorted, the union would require more than O(N).

codingmohan
Автор

At 7:10 you say Postres is infamous for write amplifications. But how is that specific to Postgres? Won't other databases amplify writes as you have more indexes just as much?

GrantGryczan
Автор

Game changer when this update gets pushed to AlloyDB

JohnMcclaned
Автор

Hi Nasser, can you please make a video or tutorial on Ora2pg installation and also how to use it.

narutoishan
Автор

Can you share the steps for postgres upgrade on version 15

prasadkumbhar
Автор

I am confused.
how did they calculate 371%? Did they considered the db query in postgresql-15 which takes "work_mem" amount of memory i.e. no rewrite on memory. And calculated the same thing for pSQL-14 which takes up extra time because of memory rewrite?

Thank you for the video

monarch
Автор

Can we try it beforehand ?
Maybe, just for fun ?

I'm very excited.

abc_cba
Автор

Hi, what are your thoughts on the Citus extension?

kevinkamau
Автор

You are taking too much time to explain 1-2 straight-forward lines. Information per unit time is very less. May be you can work in that :)

kshitijmittal