Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Why are my indexes being ignored?
"Carle, William T (Bill), NLCIO" wrote:
>
> Hi,
>
> I created an index on a table. The table has about 83,000 rows. The
> index is a simple index on one field, 35 different values of the index. I
> analyzed the table and I analyzed the index, trying it both with a histogram
> and without a histogram. No matter how I do it, it does a full table scan.
> Any ideas why? I know I can use a hint, but it seems to me that it ought to
> use the index.
how many rows are you returning? if i remember right, and if i don't i'm sure i'll be reminded;-), if you return more than a certain % of the table it does a full table scan even if there are indexes.
-- Bill "Shrek" Thater Certifiable ORACLE DBA Telergy, Inc. thaterw_at_telergy.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You gotta program like you don't need the money, You gotta compile like you'll never get hurt, You gotta run like there's nobody watching, It's gotta come from the heart if you want it to work. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "It's not a bug. It's an undocumented feature" -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Thater, William INET: ThaterW_at_telergy.net Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Jun 29 2001 - 10:18:29 CDT