From: Roland Walter <rwa@mosaic-ag.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: JDBC driver build 215 slow when index contains column of type BIGINT
Date: Wed, 09 Mar 2005 10:26:33 +0100
Message-ID: <422EC149.5040306@mosaic-ag.com> (raw)
Hello!
I use PostgreSQL 7.4.6 and the JDBC-driver build 215. I have
a table of the form
create table business_case (
bc_id BIGINT PRIMARY KEY,
...
);
To update a row, I use a PreparedStatement of the form
update business_case set ... where bc_id=?
I use setLong() to set the value of bc_id, but the update
is slow, as the index on bigint does not get used.
Changing the JDBC-driver to build 310 increases the speed dramatically:
160 updates with build 215 consumed more than 10 minutes, with build 310
just about 3 seconds.
Have I to do a typecast to ::bigint with build 215 in the PreparedStatement
to get the same performance as with build 310? That would be bad, as I
had to
form the PreparedStatement incompatible to other databases.
Regards,
Roland.
--
Roland Walter
MOSAIC SOFTWARE AG
Telefon: 02225/882-411 Fax: 02225/882-201
http://www.mosaic-ag.com
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: rwa@mosaic-ag.com
Subject: Re: JDBC driver build 215 slow when index contains column of type BIGINT
In-Reply-To: <422EC149.5040306@mosaic-ag.com>
References: <422EC149.5040306@mosaic-ag.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