In Oracle, I can use the hints USE_HASH
or USE_MERGE
to instruct the optimizer to do a hash join or a sort-merge join. How are those types of joins different and when/why should I use one or the other?
Jonathan Lewis posted a really good explanation of how hash joins and merge joins work:
and for good measure...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With