Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: which should be faster
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 servicesto: 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
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message