Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Difference in speed of sorting using index and non-index colu

RE: Difference in speed of sorting using index and non-index colu

From: Toepke, Kevin M <ktoepke_at_cms.cendant.com>
Date: Tue, 05 Jun 2001 07:30:19 -0700
Message-ID: <F001.0031BFCF.20010605071100@fatcity.com>

KC:  

In some cases, Oracle can use an index to read the data in sorted order, thereby eliminating the need for the SORT operation. Check your EXPLAIN PLANs. If there is a SORT step listed, then Oracle is doing a sort, if not
(and there is a ORDER BY clause on your query) then Oracle is using the
index to read the data in sorted order.  

Kevin

-----Original Message-----
Sent: Tuesday, June 05, 2001 10:21 AM
To: Multiple recipients of list ORACLE-L the order by

Dear list,  

Someone ask me when Oracle is doing a sort, will it make a difference if we use indexed column and non-indexes column in the order by clause, my initial thinking was index only speed up the retrieval of data from disk, Oracle probably using other algorithm in sorting records, so indexing is not relevant in that case. Can someone shed light on this question.  

KC

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Toepke, Kevin M
  INET: ktoepke_at_cms.cendant.com

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 Tue Jun 05 2001 - 09:30:19 CDT

Original text of this message

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