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 "CBO - A Configuration Roadmap" -- Histograms on Non-Indexed Columns

re "CBO - A Configuration Roadmap" -- Histograms on Non-Indexed Columns

From: Hemant K Chitale <hkchital_at_singnet.com.sg>
Date: Fri, 29 Dec 2006 00:12:27 +0800
Message-Id: <7.0.1.0.0.20061229000745.01b25580@singnet.com.sg>

Christian,

I was reading your document "CBO - A Configuration Roadmap" .

You write :
"Histograms are essential for all columns referenced in WHERE clauses that contain
skewed data. Notice that they are useful on non-indexed columns as well! For simplicity
use SIZE SKEWONLY. If it takes too much time try SIZE AUTO6. If it's still too slow or
the chosen number of buckets is not good (or the needed histogram isn't created at all),
manually specify the list of columns."

Can you explain the second sentence about Histograms on non-indexed columns as well ?
How would they be useful ? I would understand Histograms on non-indexed columns
as providing _me_ information about the data in those columns and which could allow
me to make a judgement call as to whether I should index the columns. How does the
optimizer use Histograms on non-indexed columns ?

If you do not mind [as you do post frequently at ORACLE-L], I have CC'd this to ORACLE-L
trusting that your reply might also be of interest to others on the list.

Hemant K Chitale
http://web.singnet.com.sg/~hkchital

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 28 2006 - 10:12:27 CST

Original text of this message

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