pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vitalii Tymchyshyn <tivv00@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: jdbc spec violation for autocommit=true & addbatch/executeBatch
Date: Wed, 19 Jan 2011 11:49:59 +0200
Message-ID: <4D36B3C7.1030309@gmail.com> (raw)
In-Reply-To: <4D3606CD.7080707@opencloud.com>
References: <654041.58993.qm@web33207.mail.mud.yahoo.com>
	<4D3606CD.7080707@opencloud.com>

18.01.11 23:31, Oliver Jowett написав(ла):
>
> I'm not sure if we can implement this according to the current spec 
> without losing any performance benefit of addBatch()/executeBatch() - 
> we'd have to send a Sync after every individual query. 
But is roundtrip needed for each sync? Can't we send all the data + as 
much syncs as needed and then collect responses. The only thing that 
bothers me is famous bug when receive and then send buffer overflows.
> As a workaround I suggest you just run the queries individually, not 
> in a batch - there won't be much performance difference. (And if you 
> really don't care about ordering or atomicity as you imply, you could 
> parallelize it across multiple connections if latency is a problem)

How about addBatch("commit") after each addBatch("update")? This should 
work in very similar way to sending Sync after each query.

Best regards, Vitalii Tymchyshyn



view thread (10+ messages)  latest in thread

Message-ID: <4D36B3C7.1030309@gmail.com>
Permalink:  ../4D36B3C7.1030309@gmail.com/
Also on:    postgresql.org/message-id/4D36B3C7.1030309@gmail.com

 · 

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: tivv00@gmail.com
  Subject: Re: jdbc spec violation for autocommit=true & addbatch/executeBatch
  In-Reply-To: <4D36B3C7.1030309@gmail.com>
  References: <654041.58993.qm@web33207.mail.mud.yahoo.com> <4D3606CD.7080707@opencloud.com> <4D36B3C7.1030309@gmail.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