Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored procedure performance

RE: Stored procedure performance

From: Christopher Spence <cspence_at_FuelSpot.com>
Date: Mon, 13 Aug 2001 10:59:15 -0700
Message-ID: <F001.00368E40.20010813103142@fatcity.com>

There are many many answers to your question. And it all lies in what your trying to accomplish.

As a general rule, packages perform better than procedures are the entire package is loaded.
PL/SQL is slower than SQL in due to the context switches and "calls" to sql parser, although these can be minmized by using bulk transactions and other features.
Java procedures out perform plsql when it is heavily computational. PL/SQL out performs Java procedures when it is heavily transactional OCI calls being one of lowest levels are of course very efficient.

The performance differences can be milliseconds or it can be hours depending what is trying to be accomplished.

"Do not criticize someone until you walked a mile in their shoes, that way when you criticize them, you are a mile a way and have their shoes."

Christopher R. Spence OCP MCSE MCP A+ RAPTOR CNA Oracle DBA
Phone: (978) 322-5744
Fax: (707) 885-2275

Fuelspot
73 Princeton Street
North, Chelmsford 01863  

-----Original Message-----
Sent: Monday, August 13, 2001 11:21 AM
To: Multiple recipients of list ORACLE-L

In the process of making a design decision, I'm looking for information on the relative performance of PL/SQL stored procedures / packages vs. both Pro*C / OCI SQL calls and Java stored procedures. All things being equal, let's say for DML calls with little or not procedural logic, what technique is likely to yield the best performance, and how much of a performance difference exists? In the case of PL/SQL vs. SQL, is the advantage of centralization overshadowed by a performance hit? In the case of PL/SQL vs. Java, is the advantage of a more "standard" and widely-used language among application developers similarly negated by a performance disadvantage?

I'm interested in hearing opinions based on both theoretical and empirical information. Thanks.

Paul Baumgartel
MortgageSight Holdings, LLC
pbaumgartel_at_mortgagesight.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Paul Baumgartel
  INET: pbaumgartel_at_mortgagesight.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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Christopher Spence
  INET: cspence_at_FuelSpot.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). Received on Mon Aug 13 2001 - 12:59:15 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US