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: function index concepts - urgh

Re: function index concepts - urgh

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Mon, 12 Mar 2001 09:26:19 -0800
Message-ID: <F001.002C9BA3.20010312085027@fatcity.com>

if you change your script, you will be able to make a rowid match (assuming the last/first name combinations are unique). If you don't change the script, you will get an index range scan. Oracle will match the upper(last_name) and will then have to read every row with that last name and do an upper on the first name.

>From: Dennis Taylor <ismgr_at_pctc.com>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: Re: function index concepts - urgh
>Date: Mon, 12 Mar 2001 07:31:20 -0800
>
>At 11:25 AM 3/10/01 -0800, you wrote:
> >
> >This should do it.
> >
> >select * from holder
> >where last_name = upper('Taylor')
> >and first_name = upper('Dennis');
>
>Hm. Intuitively then, I should change my index creation script from
>
>(UPPER(LAST_NAME||' '||FIRST_NAME))
>
>to
>
>(UPPER(LAST_NAME)||' '||UPPER(FIRST_NAME))
>
>Or is the optimizer intelligent enough to pull it out of the first example?
>
>
> >
> >And no it's not Friday, it is now Saturday. ;)
> >
>
>Go home! Uh, no, wait. It's Monday now.
>
>
>Dennis Taylor
>--------------------------------
>The light at the end of the tunnel is the headlamp of an oncoming train.
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: Dennis Taylor
> INET: ismgr_at_pctc.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).



Get your FREE download of MSN Explorer at http://explorer.msn.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rachel Carmichael
  INET: carmichr_at_hotmail.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 Mon Mar 12 2001 - 11:26:19 CST

Original text of this message

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