Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 4318F9FB52E for ; Fri, 20 Apr 2007 12:07:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 26541-01 for ; Fri, 20 Apr 2007 12:07:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 97B149FBA0B for ; Fri, 20 Apr 2007 12:07:24 -0300 (ADT) Received: (qmail 13011 invoked by uid 1112); 20 Apr 2007 15:07:23 -0000 Date: Fri, 20 Apr 2007 11:07:23 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Giuseppe Sacco cc: pgsql-jdbc@postgresql.org Subject: Re: Poor addBatch performance. Why dosn't it use copy ? In-Reply-To: <1177073699.5343.45.camel@scarafaggio> Message-ID: References: <10099075.post@talk.nabble.com> <1177069985.5343.33.camel@scarafaggio> <1177073699.5343.45.camel@scarafaggio> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/78 X-Sequence-Number: 16927 On Fri, 20 Apr 2007, Giuseppe Sacco wrote: > I use addBatch() very often when, but I use it with statement that work > on different tables. I think it would really be difficult to check if > the statements are referring the same table and the same field. Well Statement.addBatch and PreparedStatement.addBatch are different beasts. It wouldn't be worth it to try and parse each Statement, but parsing the PreparedStatement would be possible. Kris Jurka