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: CBO - hash join vs nested loops

Re: CBO - hash join vs nested loops

From: Radoulov, Dimitre <cichomitiko_at_gmail.com>
Date: Fri, 2 Dec 2005 17:44:42 +0100
Message-ID: <07ed01c5f75f$b3216070$1a03310a@IBME1D11967173>


Checked the CDN and NDV for the tables/columns and they seem OK, but I have to check the indexes stats too.
The only think I noticed is that the CBO expects 2076 rows before the final distinct and they are 1401.

I thought it could be something more "obvious" and "easy" :O).

Thanks,
Dimitre Radoulov

Dimitre

>Subject: CBO - hash join vs nested loops

Did you compare the estimated cardinalities with the real one? If not, it's the right place to start... In fact with 3 conditions it's quite easy to mislead the CBO.

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Dec 02 2005 - 10:47:06 CST

Original text of this message

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