Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL question: possible to improve performance in these functi
All I can think of is to pin these functions in the SHARED POOL using DBMS_SHARED_POOL.KEEP procedure !!
-----Original Message-----
Sent: Friday, May 04, 2001 3:06 PM
To: Multiple recipients of list ORACLE-L
functions?
Oracle : 8.0.5
Platform : Sun
Is there any way to "optimize" the following two functions to improve speed?
I am calling this type of functions a lot.
Thanks.
function fTest2 (v_id in number) return varchar2 is
text varchar2(32000);
cursor cur1 is
select my_text_field from my_table where id= v_id;
BEGIN for x in cur1 loop
text := text || chr(10) || x.my_text_field ; end loop;
return text;
END fTest2;
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Guang Mei
INET: zlmei_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).
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 Fri May 04 2001 - 19:10:44 CDT