Merge Join Internals in SQL Server

preview_player
Показать описание
Without additional optimizations, SQL Server's Merge Join algorithm is the fastest physical join operator available. In this episode we dive into the internals to understand how the merge join algorithm works, as well as what it means for our query performance.

Related blog post about Merge Joins:

The pessimistic costing of merge joins:

Going further in-depth with merge joins:

Follow me on Twitter:
Рекомендации по теме
Комментарии
Автор

The you. I have worked with SQL for 20 years and developed in them for 5ish and have never been able to understand execution plans. This was very well explained

VicFroman
Автор

Thanks for this one Bert. This "series" on join internals is really useful!! p.s. Have a great festive period !!

zanonilabuschagne
Автор

Wow, this is great, instant subscribe for this series!

thomasmiller
Автор

your content and explanation is good but for further videos can you please remove background music, difficult focus on what you said

rajkumar-oyni
Автор

How would it work if you put a many to one relationship where the duplicate is in the first input but not in the second?

jeffh
Автор

How can I create a scenario for the optimizer to select merge join? can anyone please tell.
I have already tried the below scenario:
--> 2 tables with 7 lakh records each
--> both tables have clustered index on the joined column

AmritanshDiwakar
Автор

Love your videos!
What background music are you using btw?

ahadbutt