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 -> Re: Hash join -vs- merge sort join

Re: Hash join -vs- merge sort join

From: Guy Harrison <gharriso_at_werple.net.au>
Date: 1997/04/15
Message-ID: <01bc4959$17ad94a0$072a11cb@gharriso>#1/1

Emrynsoft <emrynsoft_at_aol.com> wrote in article <19970414154301.LAA16087_at_ladder01.news.aol.com>...
> Hello,
>
> I am trying to figure out when it is better to use a hash join over a
> merge sort join. My understanding was that hash join works better if the
> table on which the bitmap is created is small enough to be held in
memory.

I believe that Oracle have claimed that the hash join almost always perform as well as the sort-merge and will perform much better than sort-merge when the hash table fits in memory. Thus the hash join algorithm might be preferred by the optimizer in most or all circumstances.

I've only performed comparisons on small-medium sized tables, but I've never seen sort-merge outperform hash join.

-- 
Guy Harrison

gharriso@werple.net.au || http://werple.net.au/~gharriso || 613 419377964
Received on Tue Apr 15 1997 - 00:00:00 CDT

Original text of this message

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