pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Giuseppe Sacco <giuseppe@eppesuigoccas.homedns.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Poor addBatch performance. Why dosn't it use copy ?
Date: Fri, 20 Apr 2007 11:07:23 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0704201105350.26355@leary.csoft.net> (raw)
In-Reply-To: <1177073699.5343.45.camel@scarafaggio>
References: <10099075.post@talk.nabble.com>
	<1177069985.5343.33.camel@scarafaggio>
	<1177073699.5343.45.camel@scarafaggio>



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



view thread (5+ messages)

Message-ID: <Pine.BSO.4.64.0704201105350.26355@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0704201105350.26355@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0704201105350.26355@leary.csoft.net

 · 

reply

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: books@ejurka.com, giuseppe@eppesuigoccas.homedns.org
  Subject: Re: Poor addBatch performance. Why dosn't it use copy ?
  In-Reply-To: <Pine.BSO.4.64.0704201105350.26355@leary.csoft.net>
  References: <10099075.post@talk.nabble.com> <1177069985.5343.33.camel@scarafaggio> <1177073699.5343.45.camel@scarafaggio> <Pine.BSO.4.64.0704201105350.26355@leary.csoft.net>

* 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