PL/SQL (MOSC)

MOSC Banner

Would increasing memory benefit bulk collect with performance gain

edited Dec 15, 2011 1:46AM in PL/SQL (MOSC) 8 comments
Oracle 11g 11.2.0.1 on Linux x86-64 2.6.18
In order to speed up a lengthy 'Payroll time rules process' that creates a batch for Payroll, spent considerable time rewriting sections of the code to switch from doing individual queries for certain data items to doing one 'bulk collect' query up-front into a PL/SQL "array" and then doing look ups of the array instead.  Debugging lines show that the bulk collect statement runs quite fast.


In theory doing this should have eliminated about 30000 individual queries, replacing them with one larger query and 30000 loops through the PL/SQL array.  The PL/SQL associative arrays/VARRAYs give the illusion of being like arrays that one would create and use in languages such as C and Java.  So thought that they would be like arrays in memory.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center