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 Joins vs. Nested Loops

Re: Hash Joins vs. Nested Loops

From: <ctcgag_at_hotmail.com>
Date: 22 Feb 2003 22:39:43 GMT
Message-ID: <20030222173943.277$QR@newsreader.com>


rgaffuri_at_cox.net (Ryan Gaffuri) wrote:
> Someone I was working with told me the following. I was wondering if
> anyone has any comments, because I have not seen this in any
> articles/books.
>
> He said that when he tunes he generally likes to try to force nested
> loop joins over hash joins because these tend to increase performance?
> He has done this for a long time and he said that is based on
> experience.
>
> Anyone else notice this? I have never seen this anywhere else. BTW, I
> know the difference between hash joins and nested loops and know when
> either is generally used by the optimizer.

I notice that under 9iR2 those queries which are sufficiently slow enough for me to hunt them down and inspect them, they are usually doing a hash join and getting them to use a NL speeds them up substantially. Since I don't inspect queries that aren't obnoxious, I can't say how the two join methods generally perform on the "typical" query.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Received on Sat Feb 22 2003 - 16:39:43 CST

Original text of this message

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