The parallel sort-merge
join method first performs a parallel sort to order the data, and
then merges the sorted tables in parallel. During the merge, the facility
concurrently joins multiple rows from one table with the corresponding
rows in the other table. You can use the parallel sort-merge join
method to execute any join that meets the requirements for a parallel
join.
The parallel sort-merge
method is a good, all-around parallel join strategy that requires
no intervention from you. The tables for the sort-merge method do
not need to be in the same domain. The sort-merge method is not affected
by the distribution of the data in the sort key columns.
The sort-merge method
begins by completely sorting the smaller of the two tables that are
being joined, while simultaneously performing partial parallel sorts
on the larger table. If both tables are very large and sufficient
resources are not available to do the complete sort on the smaller
table, the performance of the parallel sort-merge method can degrade.
The parallel sort-merge method is also limited when you are performing
an outer, left, or right join in parallel. Parallel outer, left, or
right joins can use only two concurrent threads. Inner joins are not
limited in the parallel sort-merge method and can use more than two
concurrent threads during parallel operations.