X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8129D5638B for ; Wed, 9 Mar 2005 09:28:15 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30840-05 for ; Wed, 9 Mar 2005 09:28:05 +0000 (GMT) Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by svr1.postgresql.org (Postfix) with ESMTP id 90C9C56379 for ; Wed, 9 Mar 2005 09:28:04 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 3820677884 for ; Wed, 9 Mar 2005 10:28:29 +0100 (CET) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23196-07 for ; Wed, 9 Mar 2005 10:28:28 +0100 (CET) Received: by mosaic02.mosaic.de (Postfix, from userid 10) id AC6C5778AB; Wed, 9 Mar 2005 10:28:28 +0100 (CET) Received: from [172.17.1.87] (aupc287.mosaic-ag.com [172.17.1.87]) by mailsrv.mosaic-ag.com (Postfix) with ESMTP id 7CBEB5627F for ; Wed, 9 Mar 2005 10:26:34 +0100 (CET) Message-ID: <422EC149.5040306@mosaic-ag.com> Date: Wed, 09 Mar 2005 10:26:33 +0100 From: Roland Walter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7.5) Gecko/20041217 X-Accept-Language: de-DE,de,en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: JDBC driver build 215 slow when index contains column of type BIGINT Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.47 tagged_above=0 required=5 tests=TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200503/80 X-Sequence-Number: 12472 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