From: Dave Cramer <pg@fastcrypt.com>
To: Do, Leon <leondo@lucent.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bind message
Date: Mon, 25 Sep 2006 13:37:03 -0400
Message-ID: <5F8A6B12-8F85-4586-9E40-2C27C31C9048@fastcrypt.com> (raw)
In-Reply-To: <275654F2AE237D438ACC1FE2697CD8C91EC2702C@nj7460exch008u.ho.lucent.com>
References: <275654F2AE237D438ACC1FE2697CD8C91EC2702C@nj7460exch008u.ho.lucent.com>
Hi,
The default is not to re-use statements, you have add
prepareThreshold=n to the url where n is greater than 0. What this
means is that after n times of use the prepared statement will be re-
used..
see http://jdbc.postgresql.org/documentation/head/
connect.html#connection-parameters for more details
Dave
On 25-Sep-06, at 1:27 PM, Do, Leon wrote:
> Hi All,
>
> From my understanding, when I create a prepare statement I can
> execute it multiple times and to increase the efficiency. But
> from what I seen from the logging, Postgres always send the same
> message sequences over the wire.
> parse,
> bind,
> describe,
> execute
> ....
> parse,
> bind,
> describe
> execute
>
> It should execute parse only one time right?
>
> If this is not the right forum then please let me know or direct me
> to the right forum
>
> thanks
>
> Leon Do
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: pg@fastcrypt.com, leondo@lucent.com
Subject: Re: Bind message
In-Reply-To: <5F8A6B12-8F85-4586-9E40-2C27C31C9048@fastcrypt.com>
References: <275654F2AE237D438ACC1FE2697CD8C91EC2702C@nj7460exch008u.ho.lucent.com> <5F8A6B12-8F85-4586-9E40-2C27C31C9048@fastcrypt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox