Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored Procedure Question
the inline view will provide better performance b/c there is no context
switching between pl/sql and the sql engine.................
-----Original Message-----
Sent: Monday, August 05, 2002 6:23 AM
To: Multiple recipients of list ORACLE-L
Hi All,
Suppose I have a SQL statement like
select c.contentid,content_pkg.getlicences(c.contentid) from content
which calls a package.
If I replace it with
select c.contentid,(select licences from licences where contentid =c.contentid) from content
would there be any difference in performance ?
I know this is trivial but in my quest for solving an open_cursor problem in Oracle8i I have noticed that unnamed cursors do not get closed. The first statement calls a package which calls an unnamed cursor, increases the number of open cursors by 1.
The second statement does not increase the number of open cursors. Is it feasible to replace the first statement by the second ?
I would appreciate any help,
Thank You,
Gavin
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Gavin D'Mello
INET: gavin_d_at_tis.co.in
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 Mon Aug 05 2002 - 16:18:24 CDT
![]() |
![]() |