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 -> Re: index usage

Re: index usage

From: Holger Baer <holger.baer_at_science-computing.de>
Date: Wed, 19 Jan 2005 17:40:10 +0100
Message-ID: <csm2hc$ssu$1@news.BelWue.DE>


hastenthunder wrote:
> Hello,
>
> I've read many documentations online stating to only create an index if
> queries against this table frequently retrieve less than 15% of the rows.
> However, if the query returns, say, 40% of the rows, wouldn't indexing the
> column still help by cutting the work by roughly half?
>
>
> hastenthunder
>
>

The number actually varies (down to 2% in some cases) and, as they say, depends on many factors.

But just think about it:
If you're going to read about half a book - would you really go through the index or would you rather just leafe through the book and skip those pages that don't interest you?

The same logic applies to table access via an index. So in fact using an index might increase the work instead of cutting down. And the threshold where using the index is increases the work depends on many factors, that's why those numbers when an index makes sense vary so much.

HTH
Holger Received on Wed Jan 19 2005 - 10:40:10 CST

Original text of this message

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