SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Confio Ignite

What is a Hash Match Join Operator?

This video explains what a hash match join is when looking at a query plan.

Duration:
1 mins 38 secs
Skill Level:
100
Rating:
4.13 out of 5
Publish Date:
September 09, 2008
What is a Hash Match Join Operator? You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Grant Fritchey
I'm currently working for FM Global, an industry leading engineering & insurance company, as a DBA. I've done development of large scale applications in languages such as VB, C# and Java. I've worked in SQL Server from the hoary days of 6.0. My nickname at work is the "The Scary DBA." I even have an official name plate with it. I wear it proudly. I was awarded a Microsoft MVP in April of '09.

References

There are no downloads or recommended reading links for this video

Comments
Howard Wild on 11/12/2008
Great, I liked that one a lot, A second query example showing how the developer gets rid of the second hash match would go a long way demonstrating how to increase performance.

Majid on 11/12/2008
Great Video

Davi Poonwassie on 11/12/2008
very clear, further explanation would be usefull, but I guess that's in a pay service?

Grant Fritchey on 11/12/2008
No, not a pay service. The goal for all the videos I recorded was to give short, sharp, examples, describing individual operators inside execution plans. That's it. Now, I need to go & start recording longer videos that talk about how to solve or work with or interprate the operators I've presented. In my spare time...

John Wilder on 11/12/2008
OK for what was said, but light on the concept overall. I was expecting more information: a) Why would the optimizer chose a hash match over other join techniques? b) How do I know that a hash match is being used inappropriately? Is the only factor that the data sets are about the same size? c)Is there information available about the values being hashed and the size of the hash table? d)Are there things that can be done to make a hash match perform more efficiently? Also - while I understand hashing many people don't and I think some sort of simple graphic showing the translation of business values to hash values in a hash table would help explain the concept.

thomas taylor on 11/12/2008
And

Jonathan Winer on 11/12/2008
Great intro to a topic, but lacking any real meat. For example 1) what clauses in the query are responsible for these two hash matches. 2) what can be done to the existing query and underlying schema to remove the hash matches or reduce their costs.

Robert Neal on 11/12/2008
Excellant video but I wanted more information

Rubens on 11/12/2008
I really appreciated this video and would love to see more on the explanation of the types of joins SQL performs. Thanks for this!

Rubens on 11/12/2008
I really appreciated this video and would love to see more on the explanation of the types of joins SQL performs. Thanks for this!

Carla Wilson on 11/12/2008
Thanks for opening my eyes to the hash match in execution plans. I checked a couple of my joins that I thought were straight-forward and was surprised to see the hash match used frequently - even for things I tought were indexed. I would like to see more information about how the optimizer uses different techniques. Sounds like indexing is key.

Neil Ryan on 11/12/2008
Great explanation, some are more visual learners and an example of a couple of tables may help. Also an example of how a missing index or Where Clause can affect SQL efficiency when it uses HASH Match. Thanks!

James Mount on 11/12/2008
This actually explained what a hash match is! Thank you!

Ahmad Elayyan on 11/12/2008
Thanks A lot for this Video but the voice was not clear.

Sue Bailee on 11/12/2008
maybe just a bit longer to explain more

Jim-Mac on 11/12/2008
the stated point here is that "a missing or incorrect index" or one (predicate) such that "index cannot be used" But... it would be a much improved instructional video to increase its length and go back to the t-sql and examine the indexes and prove or argue your thesis

Jason Wall on 11/12/2008
Great

John O'Sullivan on 11/12/2008
excellent video

Chris Strolia-Davis on 11/13/2008
I am somewhat more clear on what a hash match join operator is now, but I still don't feel like I quite get it. Perhaps some example on how to create it would have helped.

Marco Francisco on 11/14/2008
Nice explanation about hash match... But I think you should talk a little bit more about what we could do to avoid those inneficiente joins as you say. Thanks. Marco

Don on 11/24/2008
Good work guys. Quick and useful.

Don on 11/24/2008
Good work guys. Quick and useful.

Grant Fritchey on 11/25/2008
For all those that want more, I'm planning some expanded videos. They won't be available any time soon (my "free time" is a bit busy at the moment). I'll focus initially on how indexing changes execution plans. They will be longer.

Prasanna Prabhu on 11/28/2008
Sweet, you described the word "Hash Join" extremely well in plain simple words.

1B5F4C7EBF on 12/15/2008
should have been longer, perhaps illustrating how adding an index could eliminate the hash match in the inefficient scenario described...

Pete Williams on 1/5/2009
It would be good to get into a little more detail behind the hash match and demonstrate how it may be able to be corrected.

David Roach on 1/9/2009
Not enough information.

Ryan on 2/19/2009
Would have liked to see more about how to fix the bad hash match but it did explain some thing and gave me some ideas what to go after

A on 5/14/2009
Congratulations on the MVP! Thanks for all the support you offer to the community!

Doug Dorr on 1/19/2010
I would have liked to see how to trouble shoot the issue

Pramod on 4/30/2011
Help to understand.

Rahul on 4/30/2011
Its very useful

Eric on 5/24/2011
Very good intro, I need to learn more on my own now.

john on 8/9/2011
Sound does not work. Where is the transcript? Why do I need a STUPID video, when I can read the transcript in less time???????????



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions