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: Density calculation. Was: Incorrect cardinality estimate

RE: Density calculation. Was: Incorrect cardinality estimate

From: Laimutis Nedzinskas <Laimutis.Nedzinskas_at_landsbanki.is>
Date: Thu, 25 Jan 2007 12:34:07 -0000
Message-ID: <5A8896FB2AFC5445A7DCFC5903CCA6B06FEC77@W03856.li01r1d.lais.net>


Ok then, Oracle is adjusting density by deviation.

The question is how Oracle decides unpopular values. Calculations show that the decision is discrete: The value is either in or out, there appears to be no weighting factor.  

-----Original Message-----

From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of jonathan_at_jlcomp.demon.co.uk Sent: 25. janúar 2007 10:59
To: oracle-l_at_freelists.org
Subject: Re: Density calculation. Was: Incorrect cardinality estimate

See Cost Based Oracle Fundamentals p.172

In purely descriptive terms, the density is:

    sum of the square of the frequency of the non-popular values /     (number of non-null rows * number of non-popular non-null rows)

It is interesting to note that in the case of the original poster, eliminating the popular values made the density go UP, when you would expect it to go down.

Regards
Jonathan Lewis
Fyrirvari/Disclaimer
http://www.landsbanki.is/disclaimer
--

http://www.freelists.org/webpage/oracle-l Received on Thu Jan 25 2007 - 06:34:07 CST

Original text of this message

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