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

Home -> Community -> Mailing Lists -> Oracle-L -> Poor performance with Histogram

Poor performance with Histogram

From: Shivaswamy Raghunath <shivaswamykr_at_gmail.com>
Date: Mon, 11 Dec 2006 10:39:20 -0500
Message-ID: <1e52ad820612110739y16d971e8n7ec984ad87e01b21@mail.gmail.com>


Hello listers.

I have used histograms to imporve performance drastically on several earlier occassions on our DSS databases. But recently, it took me quite a while to determine that by removing histograms, I am able to run one critical query - the report from which was happened to be of interest to my CEO - far faster than with histogram. The test query - involving two tables, one partitioned(60 Million) and another regular (13 Million), with outer joins, view merging, few aggregate sorts and sub queries- completes in under 5 sec without histograms while it takes nearly 17 minutes with histograms.

Can you tell me where I can look to understand this. Plans are different, of course. But how CBO fails to evaluate the plan I could not comprehend. I am in the process of studying Jonathan Lewis (Chapter 7 & 14) to understand. But any input/insight would greatly be appreciated.

Thanks,
Shiva

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Dec 11 2006 - 09:39:20 CST

Original text of this message

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