From: Thomas Hallgren <thhal@mailblocks.com>
To: Antony Paul <antonypaul24@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Pass column name in preparedstatement
Date: Tue, 15 Feb 2005 13:27:15 +0100
Message-ID: <thhal-0JoPtAlt3xiccbsTO5Ds7AdAazZA/TY@mailblocks.com> (raw)
In-Reply-To: <2989532e05021504045fc879fe@mail.gmail.com>
References: <2989532e050215032031e9aeb8@mail.gmail.com>
<4211E2E1.4090506@opencloud.com>
<2989532e05021504045fc879fe@mail.gmail.com>
<4211EAA3.3090905@mailblocks.com>
<thhal-0JYPtAll3xicy1xBTlc/1PQTfr0crKg@mailblocks.com>
Antony Paul wrote:
> In 7.3.3 is there any use in using PreparedStatement since the columns
> may change for each query.
>
Depends on the use case. I created a solution a while back where I used
a MRU cache to hold the 10 or so most frequently generated
PreparedStatements. In my case that improved performance a whole lot.
This was not a PostgreSQL database though but I guess the effect could
be similar.
Regards,
Thomas Hallgren
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: thhal@mailblocks.com, antonypaul24@gmail.com
Subject: Re: Pass column name in preparedstatement
In-Reply-To: <thhal-0JoPtAlt3xiccbsTO5Ds7AdAazZA/TY@mailblocks.com>
References: <2989532e050215032031e9aeb8@mail.gmail.com> <4211E2E1.4090506@opencloud.com> <2989532e05021504045fc879fe@mail.gmail.com> <4211EAA3.3090905@mailblocks.com> <thhal-0JYPtAll3xicy1xBTlc/1PQTfr0crKg@mailblocks.com> <thhal-0JoPtAlt3xiccbsTO5Ds7AdAazZA/TY@mailblocks.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