Re: prepared statement performance - Mailing list pgsql-jdbc

From Joseph Shraibman
Subject Re: prepared statement performance
Date
Msg-id 3B4A4F8E.C5EAB5F1@selectacast.net
Whole thread Raw
In response to prepared statement performance  (Sheer El-Showk <sheer@saraf.com>)
List pgsql-jdbc
Perpared statements in postgres jdbc are converted on the java side and
then shipped to the backed, so there will no performance increase.

Sheer El-Showk wrote:
>
> Does anyone have some handy metrics of the performance advantage of
> prepared vs unprepared statements?  I'm considering the case of an
> application which has to make multiple queries/inserts (30-100) per
> application transaction and which is currenlty generating the sql by
> building the strings on the fly then passing them to the JDBC.  Can I
> expect significant (ie worth the recoding time) performance increases by
> converting the statements into prepared statements?
>

--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

pgsql-jdbc by date:

Previous
From: Joseph Shraibman
Date:
Subject: Shutdown hook imp
Next
From: Joseph Shraibman
Date:
Subject: Re: Patch to remove connection hook and JDK 1.3 dependencies