Category Archive Template
21st Century PL/SQLYour chance to influence the direction of the Oracle PL/SQL language. |
|||||
|
Performance-related Issues Oracle has taken great strides in recent years to improve PL/SQL performance, including an optimizing compiler and new features like FORALL and BULK COLLECT. Ideas within Performance-related Issues
April 06, 2005Optimisation of array processingFrom Oracle 10g onwards, for the following for loop style array processing is automatically done. for i in (select empno from emp) loop the records are fetched 100 at a time automatically. However, many people have written their code like:
cursor c is
select empno from emp;
for i in c loop
This code does not take advantage of array processing. In the newer version, even such code should be made to take advantage of array processing Thanks Posted by viswanathan venkat ramanan at 03:47 AM | Add your thoughts (1) October 06, 2005New pragma to disavow knowledge of code having been runAfter PL/SQL code is run it remains loosely associated with the session that ran it as evidenced by records in the V$OPEN_CURSOR view. This view also includes any cursors or DML the code performed. Sometimes it would be handy to avoid this association when one knows that particular code will never be executed by the session again. Perhaps syntax something like this:CREATE OR REPLACE PROCEDURE bob AS PRAGMA disavow_knowledge; ...One example of where this would be handy is with code that writes audit records. I don\\\'t want valuable application cursors to be pushed out of the session allocated space just because some auditing code ran. Conversely if I set the OPEN_CURSORS parameter really high I would not want the space to be cluttered with the auditing code. Posted by Darryl Hurley at 05:33 PM | Add your thoughts (1) |
Sidebar Template Search Template Search 21st Century PL/SQLActions Template ActionsIdeas List Template Browse Categories
|
||||