Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Réf. : histograms, buckets, and bind variables

Réf. : histograms, buckets, and bind variables

From: <huy-luan.le_at_amecspie.com>
Date: Wed, 17 Nov 2004 17:27:25 +0100
Message-ID: <OF0F21E559.B1DB5611-ONC1256F4F.005A5411-C1256F4F.005A66C1@amecspie.com>

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-l
Received on Wed Nov 17 2004 - 10:46:26 CST

Original text of this message

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