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 based index

Re: function based index

From: <sfaroult_at_oriole.com>
Date: Tue, 20 Nov 2001 07:13:58 -0800
Message-ID: <F001.003C95D8.20011120065523@fatcity.com>

>hi everyone
>
>we have a query with several max functions in it.
>The performance of the query is not so well, can i achieve better
>performance with function based index on
>max(columnname)?
>according the manuals this is not allowed because max is a group function.
>anyone with a solution for this ?
>
>vr. gr.
>g.g. kor
>rdw ict groningen
>

If columnname is indexed (plain index) and Oracle ***decides*** to do so, it can use the index to fetch the proper value (it's sorted in the index, remember). Out of memory, and if it's feasible, I'd make the column 'NOT NULL' (use a default special value such as -1 or whatever to mean 'not available'). As nullable columns are not always physically stored, and therefore may have no rowid, there is no entry for NULL values in indices and, knowing it, Oracle may behave in ways you didn't expect.

HTH Stephane Faroult
Oriole

--
Diese E-Mail wurde mit http://www.mail-inspector.de verschickt
Mail Inspector ist ein kostenloser Service von http://www.is-fun.net
Der Absender dieser E-Mail hatte die IP: 194.51.96.14

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: sfaroult_at_oriole.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 Nov 20 2001 - 09:13:58 CST

Original text of this message

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