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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re: hash join and nested loop join in an oltp query

Re: Re: hash join and nested loop join in an oltp query

From: <ryan.gaffuri_at_cox.net>
Date: Tue, 4 May 2004 16:19:48 -0400
Message-Id: <20040504201948.OXWK18803.lakermmtao11.cox.net@smtp.central.cox.net>


no. I have seen them recently with range scans on both tables. I think it might be because I have filters on table A, which returns only a small number of records, then it hashes the large table and scans with a range scan.

I never saw this in 8i. how much did they change the CBO in 9?
>
> From: Mladen Gogala <mladen_at_wangtrading.com>
> Date: 2004/05/04 Tue PM 03:04:28 EDT
> To: oracle-l_at_freelists.org
> Subject: Re: hash join and nested loop join in an oltp query
>
>
> On 05/04/2004 02:43:13 PM, ryan.gaffuri_at_cox.net wrote:
> >
> > what types of cases make hash joins superior to nested loops? I see them alot in batch processing when I need > to join most of the rows, but I am see them now when I return a small subset of rows.
>
> Well, if you have to use full table scan to retrieve rows from one of the tables,
> there is a strong probability that hash join will be



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Tue May 04 2004 - 15:19:46 CDT

Original text of this message

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