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: Cost of joins

Re: Cost of joins

From: paquette stephane <stephane_paquette_at_yahoo.com>
Date: Mon, 07 Oct 2002 12:33:23 -0800
Message-ID: <F001.004E2C09.20021007123323@fatcity.com>


It depends on what you're doing. The use of a join technique over another depend on how much data you need to access.

If you read very few information from both tables then a nested loop is the fastest way to get data. To use a nested join at a cheap cost you need a good index on the outer table.

On the other hand, if your query output contained allmost all data from both tables than an hash join or a sort merge is better than a nested loop.

If you're in a DW and have data organized with dimension and fact tables than the optimiser should be using star transformation.


Stéphane Paquette
DBA Oracle, consultant entrepôt de données Oracle DBA, datawarehouse consultant
stephane_paquette_at_yahoo.com

Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?paquette=20stephane?=
  INET: stephane_paquette_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Oct 07 2002 - 15:33:23 CDT

Original text of this message

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