Postgres Join Strategies - Nested Loop Join, Hash Join, Merge Join
Vložit
- čas přidán 6. 06. 2021
- In this video, I share with you how Postgres Join strategies work. I will explain in details step by step how these 3 join algorithms operate: Nested Loop Join, Hash Join and Merge Join.
#postgres #queryplan #liftandshiftdev #postgresql #backend #database #sql #joinstrategies #mergejoin #hashjoin #nestedloopjoin
Medium blog: / postgresql-join-strate...
Support the channel: paypal.me/liftandshiftdev - Věda a technologie
Isn't the merge join at the end incorrect since the second set wasn't sorted first? From what I'm seeing, merge join requires both sets to be sorted first.
Yep, definitely needs to be sorted first.
Merge join explaination is wrong. Second ist has to be sorted
Very easy to understand, thank u a lot
In the merge join, you did not pick/match employe id 4. Why you are not considering that record. as per condition it should be part of the result. Can you please update on this?
For that, you have to create pre-sorted index in the salary table. In this case, Merge Join will go through all values in salary table, but in the sorted way.