Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> PL/SQL Wrapper Costs - Lessons Learned
First I would like to thank the folks that offered suggestions on this
problem, and I'd like to give back something here, in terms of what I
learned. Part of this was from some excruciating trace file analysis,
and some from actual benchmarking of different data access techniques
(using 10.2.0.3 under 32 bit Linux).
If you have (2) or more SQL statements to run, the PL/SQL overhead might start to look more tolerable.
3) Using "singleton" SQL (or procedures) to return data associated with
individual records is another *really bad idea*, especially when you
expect to be doing this for a lot of records. Using a client side cursor
loop (ResultSet loop for Java folks) can result in 10X client side
performance improvement over running many singleton select statements.
(and 20X performance over singleton PL/SQL wrapper procs). The gains
made here are primarily in the reduction of the quantity of database
calls and SQL*Net traffic.
Peter Sylvester
MITRE Corp.
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Jun 20 2007 - 18:13:25 CDT
![]() |
![]() |