Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A62CC9FB909 for ; Tue, 13 Mar 2007 13:02:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 07385-06-2 for ; Tue, 13 Mar 2007 13:02:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5844F9FB935 for ; Tue, 13 Mar 2007 13:02:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l2DG2RSp002951; Tue, 13 Mar 2007 12:02:27 -0400 (EDT) To: Heikki Linnakangas cc: femski , pgsql-performance@postgresql.org Subject: Re: Postgres batch write very slow - what to do In-reply-to: <45F6C99B.1080507@enterprisedb.com> References: <9452092.post@talk.nabble.com> <45F685B7.5040001@enterprisedb.com> <9453712.post@talk.nabble.com> <2563.1173799749@sss.pgh.pa.us> <45F6C99B.1080507@enterprisedb.com> Comments: In-reply-to Heikki Linnakangas message dated "Tue, 13 Mar 2007 15:56:11 -0000" Date: Tue, 13 Mar 2007 12:02:26 -0400 Message-ID: <2950.1173801746@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/233 X-Sequence-Number: 23638 Heikki Linnakangas 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