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: CBO - Why does it often choose the Sort Merge Join?

Re: CBO - Why does it often choose the Sort Merge Join?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Fri, 25 Jan 2002 21:39:07 +0000
Message-ID: <3C51D07B.844@yahoo.com>


Ian wrote:
>
> Hi,
> I've been doing some basic testing on sort/merge and hash joins and
> was wondering why the CBO often prefers to use the sort/merge join
> rather than the hash join?
>
> I can't find any documentation anywhere!
>
> Many thanks in advance
>
> Si

Haven't got hash_join_enabled = false have you? :-)

As a rough guide, if one of the join tables is small, a hash join is often chosen. If both tables are large (and sort_area_size is large), the sort-merges tyically get the nod.

hth
connor

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Fri Jan 25 2002 - 15:39:07 CST

Original text of this message

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