Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> When does a merge join beat a hash join?

When does a merge join beat a hash join?

From: Jaap W. van Dijk <j.w.vandijk.removethis_at_hetnet.nl>
Date: Wed, 05 Mar 2003 09:58:43 +0100
Message-ID: <tjeb6vk2brd93jtbuopirauuset9g2vimq@4ax.com>


A general (theoretical? academical?) question:

When the Oracle optimizer chooses a merge join, why doesn't it choose a hash join instead?
Shouldn't a hash join always be faster than a merge join? And if it isn't, is that because of poorly chosen parameter values, or are there data situations in which it is inherent that a merge join is faster than a hash join?

Jaap. Received on Wed Mar 05 2003 - 02:58:43 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US