Re: Prepared statements

2003-02-06 Thread Michael Weller
> Prepared statements in the jvm reuse the query objects but does anyone know > if postgresql itself is able to reuse queries? > Ever asked yourself if a pstgresql mailinglist could get you better answers?! -mw _

Prepared statements

2003-02-06 Thread Paul van Beukering
Thanks, Now I can also use 'prepared statement pooling'. Use the pooling pattern and you can divide up ererything. Prepared statements in the jvm reuse the query objects but does anyone know if postgresql itself is able to reuse queries? -Original Message- From: William

Re: Prepared Statements in JDBC

1999-08-19 Thread Diego Ernesto Malpica Chauvet
A Suresh wrote: > hi,thanks for the information. could u pls carify me further?i would like to > know where this prepared statement residesduring the execution of a servlet. > Is the compiled version ofthe stmt stored in the PreparedStatement obj or is > it storedin the database server? In either

Re: Prepared Statements in JDBC

1999-08-18 Thread Craig R. McClanahan
Paul Szynol wrote: > hi, all, > > does anyone know if it is possible to invoke a servlet that will append, > rather than replace, the current output of the page? > > thanks, > paul > One way to do this would be to have your servlet use RequestDispatcher.include() to get the contents of the page

Re: Prepared Statements in JDBC

1999-08-18 Thread Paul Szynol
hi, all, does anyone know if it is possible to invoke a servlet that will append, rather than replace, the current output of the page? thanks, paul ___ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body

Re: Prepared Statements in JDBC

1999-08-18 Thread Diego Ernesto Malpica Chauvet
//Say you have something like this Statement statement=con.createStatement (); for (n=1;n<=10;n++) { statement.executeQuery("select * from -."); } //your query "select * from " is compiled 10 times and executed 10 times. //Using a prepare statement: PreparedStatement pre

Prepared Statements in JDBC

1999-08-17 Thread A Suresh
hi all,   Jason Hunter says "a PreparedStatement is precompiled by the database for faster execution". What exactly does this mean? Where does the statement reside during servlet execution? Code accessing a PreparedStatement needs to be synchronized for multiple users? Can anyone elaborate?