In Oracle, what is the difference between a hash join and a sort-merge join?

In Oracle, I can use hints USE_HASHor USE_MERGEto instruct the optimizer to make a hash join or a sort-merge join. How do these types of joins differ and when / why should I use one or the other?

+3
source share
3 answers

Jonathan Lewis posted a really good explanation of how a hash comes together and comes together:

and for good measure ...

+5

", / "

, . Oracle.

+3

use_hash - . - - .

use_merge /, " ". I.e., A Z.

- - , ,

, , .

+2
source

Source: https://habr.com/ru/post/1773922/


All Articles