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: When is an index used??

Re: When is an index used??

From: Jgitomer <jgitomer_at_aol.com>
Date: 10 May 1998 13:54:45 GMT
Message-ID: <1998051013544500.JAA10663@ladder03.news.aol.com>


Hi Matthias,

To take advantage of the index drop the ORDER BY clause from your query

>Matthias Kramer wrote:
>>
>> SELECT field FROM table ORDER BY field
>>

The ORDER BY is forcing a sort after the result set is extracted from the database. If you still don't see a significant improvement (here I am making an assumption that the table you are querying is fairly large) then add a hint to use the index.

Regards

Jerry

Jerry Gitomer Since I know how to spell DBA, I became one. Received on Sun May 10 1998 - 08:54:45 CDT

Original text of this message

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