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

Home -> Community -> Usenet -> c.d.o.server -> Re: PLSQL 4X faster than internal JAVA?

Re: PLSQL 4X faster than internal JAVA?

From: Ian Robinson <ian.robinson_at_stng.co.uk>
Date: Tue, 17 Jul 2001 10:01:08 +0100
Message-ID: <3B53FED4.C51C3A8E@stng.co.uk>

Carl,

I defintely agree with Thomas

Thomas Kyte wrote:
>
>
> Since PLSQL is written for SQL -- its interaction with SQL will necessarily be
> better, faster, easier then most anything else.
>
> Even if you use N-Comped Java code in the database (compiled to object code) you
> will not see a huge speed up in this case -- Java just has to do more work to
> interact with SQL then PLSQL does.
>
> PLSQL is, and most likely will continue to be, the appropriate choice for things
> "SQL".
>

However, looking at the code you posted, perhaps more important than the nesting of the prepared statement, is the connection you are using. Although you have the java running internally, its interaction with the server is still via the thin JDBC client.

Using the internal/default driver connection should help close the gap a little...

    conn = new oracle.jdbc.driver.OracleDriver().defaultConnection ();

Ian Received on Tue Jul 17 2001 - 04:01:08 CDT

Original text of this message

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