RE: Index access much slower than expected.

From: Kenneth Naim <kennethnaim_at_gmail.com>
Date: Thu, 19 May 2011 14:08:28 -0400
Message-ID: <016801cc164f$c20c5f80$46251e80$_at_gmail.com>



Table Numrows 53,424, blocks 5,566  

Index numrows 53,424 clustering factor 41,357, blevel 1, distinct keys 28 size 960k  

Thanks,

Ken  

From: PD Malik [mailto:pdthedba_at_gmail.com] Sent: Thursday, May 19, 2011 1:50 PM
To: kennethnaim_at_gmail.com; Oracle-L Group Subject: Re: Index access much slower than expected.  

Also please post the table.num_blocks, table.num_rows and index clustering factor.

On Thu, May 19, 2011 at 6:43 PM, Kenneth Naim <kennethnaim_at_gmail.com> wrote:

Thanks. I have tried updating stats using compute with/without histograms. The core of my question is how 2 identical plans with one exception an index scan of 4% of a small table takes 6 times longer than the same plan with a full scan of same table. Both the index and table are on the same file system with identical tablespace parameters, 16k block size auto allocate extent management, and auto segment space management.  

Forgot to mention the database is 10.2.0.4  

From: Allen, Brandon [mailto:Brandon.Allen_at_OneNeck.com] Sent: Thursday, May 19, 2011 1:21 PM
To: kennethnaim_at_gmail.com
Subject: RE: Index access much slower than expected.  

We'd need a lot more detail on the query, data, and explain plan to tell exactly what's going on, but if you just want to get the query running better, I'd suggest first checking to make sure you have your stats up-to-date on all 4 tables (and their indexes) and try using 100% sample size if you haven't already. Also try with and without histograms to see if it works better one way or the other.  

Regards,

Brandon    


Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.


Checked by AVG - www.avg.com <http://www.avg.com/> Version: 10.0.1375 / Virus Database: 1509/3647 - Release Date: 05/19/11


Checked by AVG - www.avg.com <http://www.avg.com/> Version: 10.0.1375 / Virus Database: 1509/3647 - Release Date: 05/19/11  


Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3647 - Release Date: 05/19/11


Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1509/3647 - Release Date: 05/19/11

--
http://www.freelists.org/webpage/oracle-l
Received on Thu May 19 2011 - 13:08:28 CDT

Original text of this message