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

Home -> Community -> Usenet -> c.d.o.misc -> Slow execution when calling function from select

Slow execution when calling function from select

From: <r_agit_at_msn.com>
Date: 25 May 2006 11:05:14 -0700
Message-ID: <1148580314.702173.116220@g10g2000cwb.googlegroups.com>

Hello,

I have a query that returns 1 row and runs in 1s.

select a,b,c,d from t1 where condition N

A       B        C        D
Test   10      14       AB

I have a function that receives 2 parameters and executes in less than a second.

select myFunc(14,'AB') from dual

When I combine the two together it takes over 30s to run.

select a,b,myFunc(c,d) from t1 where condition N

Any help would be appreciated. Received on Thu May 25 2006 - 13:05:14 CDT

Original text of this message

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