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 -> CBO forgot histogram when compare index distribution

CBO forgot histogram when compare index distribution

From: <andreas.prusch_at_sintec.de>
Date: Sat, 23 May 1998 06:35:07 GMT
Message-ID: <6k5qmr$7k9$1@nnrp1.dejanews.com>


The following is a school example (awful english?) for using histograms. We have a table with 200.000 rows. The table is very often indexed. Let's have a look of two indexes. The first index have 4 distinct values for 200.000 rows. But there's one value that is only about 100 times in the whole table. Ok, we make the histogram and the CBO uses the index. Easygoing, we will wait for the future. Unfortunately, there is a second question which use the second index too. This index with no histogram but better overall distribution now gets the CBO's attention. But this calculation seems to only base on the overall distribution. In the special case the value for the first index is much more distinctive than for th second index. Has the CBO forget the information out of the histogram?

-----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading Received on Sat May 23 1998 - 01:35:07 CDT

Original text of this message

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