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 -> FOR ALL COLUMNS -- why??

FOR ALL COLUMNS -- why??

From: Domenic <domenicg_at_hotmail.com>
Date: 17 Sep 2004 19:51:44 -0700
Message-ID: <c7e08a19.0409171851.63f47d5a@posting.google.com>


Now that I'm looking at dbms_stats, what is the benefit of calculating histograms on columns that aren't indexed? Skew or no skew -- there is only one path.

So if I have a "gender" column and 95% are males and 5% are females, if it was indexed then this makes sense:

SELECT * FROM whatever WHERE gender = 'F' --> index scan SELECT * FROM whatever WHERE gender = 'M' --> full table scan

But if there's no index, what's the point?

Does anyone know of an example?

Domenic. Received on Fri Sep 17 2004 - 21:51:44 CDT

Original text of this message

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