dbTalk Databases Forums  

Slow execution when calling function from select

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Slow execution when calling function from select in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Slow execution when calling function from select - 05-25-2006 , 01:05 PM







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.


Reply With Quote
  #2  
Old   
Vladimir M. Zakharychev
 
Posts: n/a

Default Re: Slow execution when calling function from select - 05-25-2006 , 01:44 PM






And what happens to be that condition? And what happens
to be the query plan? And how many rows happen to be in
the table? In other words, give us a worked example.
Sorry, my crystal ball needs cleaning...

--
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.