Merge Join Internals in SQL Server

Sdílet
Vložit
  • čas přidán 8. 07. 2024
  • 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.
    Subscribe and turn on notifications to never miss a weekly video: czcams.com/users/DataWithBer...
    Related blog post about Merge Joins:
    bertwagner.com/2018/12/18/vis...
    Be sure to check out part 1 on nested loops joins: • The Importance of Nest...
    And part 3 on hash match joins: • Hash Match Join Intern...
    The pessimistic costing of merge joins:
    dba.stackexchange.com/questio...
    Going further in-depth with merge joins:
    sqlserverfast.com/epr/merge-j...
    Follow me on Twitter:
    / bertwagner
  • Věda a technologie

Komentáře • 15

  • @VicFroman
    @VicFroman Před 4 lety +1

    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

  • @zanonilabuschagne7628
    @zanonilabuschagne7628 Před 5 lety +1

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

  • @thomasmiller8289
    @thomasmiller8289 Před 5 lety

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

  • @Das.Kleine.Krokodil
    @Das.Kleine.Krokodil Před 4 lety +1

    Очень доходчиво, спасибо!

  • @tuval012
    @tuval012 Před 2 lety

    Thank you! Good explanation

  • @janasoliman9773
    @janasoliman9773 Před 7 měsíci

    Thank you that was so useful!

  • @jeffh6846
    @jeffh6846 Před 4 lety +1

    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?

  • @ahadbutt7481
    @ahadbutt7481 Před 4 lety

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

  • @andrew5407
    @andrew5407 Před 4 lety

    Excellent

  • @user-od5ny6rv9n
    @user-od5ny6rv9n Před měsícem

    Thanks🎉

  • @AmritanshDiwakar
    @AmritanshDiwakar Před 4 lety

    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

  • @user-vg7jz1sz5k
    @user-vg7jz1sz5k Před 3 měsíci

    what is sound track plays?

  • @rajkumar-oy3ni
    @rajkumar-oy3ni Před 2 měsíci

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

  • @tsunningwah3471
    @tsunningwah3471 Před 2 měsíci

    可能,你,那麼,那麼,那麼,那麼,你,嗎你們,你,m