Re: Postgres batch write very slow - what to do

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Cc: femski <hypertree(at)yahoo(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres batch write very slow - what to do
Date: 2007-03-13 16:02:26
Message-ID: 2950.1173801746@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
> OP said he's using addBatch/executeBatch with a batch size of 100. The
> JDBC driver sends the whole batch before waiting for responses.

Perhaps a bit of checking with a packet sniffer would be warranted.
If it's really working like that he shouldn't see the network utilization
load he reported ...

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dengler, Michael 2007-03-13 16:03:47 Re: Autocommit in libpq
Previous Message Heikki Linnakangas 2007-03-13 15:56:11 Re: Postgres batch write very slow - what to do