No, just a hunch that I got when thinking on the overhead.

Yechiel Adar, Mehish Computer Services
[EMAIL PROTECTED]

> -----Original Message-----
> From: Orr, Steve [SMTP:[EMAIL PROTECTED]]
> Sent: Tue, January 15, 2002 4:46 PM
> To:   Multiple recipients of list ORACLE-L
> Subject:      RE: Using procedures instead of coding update/insert
> SQL...huh?
> 
> Hmmm... Precompiled PL/SQL is LESS efficient than embedded SQL? Got
> metrics?
> 
> 
> -----Original Message-----
> Sent: Tuesday, January 15, 2002 7:20 AM
> To: Multiple recipients of list ORACLE-L
> 
> 
> Hello All
> 
> It is not efficient. 
> We are talking about sending one insert statement against: call procedure,
> activate the procedure in the database, parse and pass the parameters, do
> the same insert, set return code, deactivate the procedure etc.
> 
> The idea behind this method is to isolate various functions to black
> boxes, 
> so you can change each of them without changing the program that use them.
> In short 'MAINTENANCE' (which is 70-80% of our daily life).
> 
> Yechiel Adar, Mehish Computer Services
> [EMAIL PROTECTED]
> 
> > -----Original Message-----
> > From:       [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:       Tue, January 15, 2002 3:25 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject:    Re: Using procedures instead of coding update/insert
> > SQL...huh?
> > 
> > I've seen this done also on a Java project.  My understanding was that
> it
> > had to do more with the way an object oriented programmer's mind worked
> > than with any code efficiency.
> > 
> > 
> > 
> >  
> > 
> >                     "Grabowy,
> > 
> >                     Chris"               To:     Multiple recipients of
> > list ORACLE-L      
> >                     <cgrabowy            <[EMAIL PROTECTED]>
> > 
> >                     @fcg.com>            cc:
> > 
> >                     Sent by: root        Subject:     Using procedures
> > instead of coding   
> >                                          update/insert SQL...huh?
> > 
> >  
> > 
> >                     01/14/2002
> > 
> >                     10:10 AM
> > 
> >                     Please
> > 
> >                     respond to
> > 
> >                     ORACLE-L
> > 
> >  
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > I just joined a new Oracle/Java project using Tomcat app server.  On
> this
> > project they decided to create an update procedure and insert procedure
> > for
> > every table.  This procedure is then called in the Java code with the
> > appropriate parameters passed, instead of simply coding the UPDATE or
> > INSERT
> > SQL directly in Java.
> > 
> > Does anyone else take this approach?  I'm trying to understand the pros
> vs
> > cons of this approach.
> > 
> > TIA!!!
> > 
> > Chris
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author: Grabowy, Chris
> >   INET: [EMAIL PROTECTED]
> > 
> > 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: [EMAIL PROTECTED] (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: 
> >   INET: [EMAIL PROTECTED]
> > 
> > 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: [EMAIL PROTECTED] (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).
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >  This e-mail was scanned by the eSafe Mail Gateway 
> > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> -- 
> Author: =?iso-8859-8?Q?=E0=E3=F8_=E9=E7=E9=E0=EC?=
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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: Orr, Steve
>   INET: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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).
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>  This e-mail was scanned by the eSafe Mail Gateway 
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-8?Q?=E0=E3=F8_=E9=E7=E9=E0=EC?=
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to