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: which should be faster

RE: which should be faster

From: STEVE OLLIG <sollig_at_lifetouch.com>
Date: Fri, 02 May 2003 13:12:13 -0800
Message-ID: <F001.0058E73D.20030502131213@fatcity.com>


general rule: put most selective column first in concatenated indexes.  

if there really is only 1 value for organization in all rows it does no good to index it. a would be the correct answer.

-----Original Message-----

Sent: Friday, May 02, 2003 3:27 PM
To: Multiple recipients of list ORACLE-L

I have table invoice with columns ( organization , invdate , amount )  

there are tons of query which do search on organization and invdate. But there is only one distinct value for organization .  

which index should be faster
a. just on indate or
b. ( organization, indate ).    

-ak
     

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: STEVE OLLIG
  INET: sollig_at_lifetouch.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services

---------------------------------------------------------------------
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 May 02 2003 - 16:12:13 CDT

Original text of this message

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