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 unused

Re: index unused

From: Daniel Roy <danielroy10junk_at_hotmail.com>
Date: 12 Jan 2004 08:39:44 -0800
Message-ID: <3722db.0401120839.dfd0aac@posting.google.com>


> An index is NOT a magic "go faster bullet".
>
> With no WHERE clause you are asking Oracle
> to return every row; which means a FTS is
> the ONLY way to satisfy your query. The use
> of an index would make the query run SLOWER,
> because it would 1st have to read the index
> and then go read tha data for EVERY row! It
> doubles the number of I/O operations in this
> case.
>
> An index can get the results faster than
> a FTS if & when only a specific subset of
> rows is being returned AND the WHERE clause
> can actually use whole column(s) in an index.
>
> P.S.
> the use of indexes is NOT restricted to XML.
> Go read the Oracle Concepts Manual at
> http://tahiti.oracle.com

Ana,

   I agree with what you say, but I'd like to add that there are situations where an index can be used, even if there is no WHERE clause at all:

Daniel Received on Mon Jan 12 2004 - 10:39:44 CST

Original text of this message

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