Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Réf. : histograms, buckets, and bind variables
Wolfgang Breitling said :
A commonly held belief is that histograms are useless, i.e. have no effect
on the access plan, if bind variables are used since the value is not known
at parse time and the CBO histograms are only ever used by the CBO can not
determine from the histogram if it should use an available index or not.
While the latter is true, the gathering of histograms still can change the
access plan. Why and how? Because
a) the optimizer uses the density in its filter factor calculation, not
NDV.
b) the density is calculated differently for columns with histograms, not
simply as 1/NDV
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Nov 17 2004 - 10:46:26 CST
![]() |
![]() |