pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Merlin Moncure <mmoncure@gmail.com>
To: femski <hypertree@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres batch write very slow - what to do
Date: Fri, 16 Mar 2007 08:52:32 -0500
Message-ID: <b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.gmail.com> (raw)
In-Reply-To: <b42b73150703160548t683ee4eckc3b05275e000b02b@mail.gmail.com>
References: <9452092.post@talk.nabble.com>
	<45F685B7.5040001@enterprisedb.com>
	<9453712.post@talk.nabble.com>
	<9473692.post@talk.nabble.com>
	<b42b73150703141752q64ddebc2mb53c501047d0b7b6@mail.gmail.com>
	<9486986.post@talk.nabble.com>
	<b42b73150703141926p220b86c3m663f12aabd678d78@mail.gmail.com>
	<9492938.post@talk.nabble.com>
	<b42b73150703160548t683ee4eckc3b05275e000b02b@mail.gmail.com>

On 3/16/07, Merlin Moncure <mmoncure@gmail.com> wrote:
> Be careful...you are just testing one very specific thing and it its
> extremely possible that the Oracle JDBC batch insert is more optimized
> than PostgreSQL's.  On my little pentium 4 workstation, by inserting
> 10 rows per insert:
> insert values ([...]), ([...]), [8 more rows];

small correction here, I actually went and looked at the JDBC api and
realized 'addBatch' means to run multiple stmts at once, not batch
inserting.  femski, your best bet is to lobby the JDBC folks to build
support for 'copy' into the driver for faster bulk loads (or help out
in that regard).

merlin



view thread (20+ messages)  latest in thread

Message-ID: <b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.gmail.com>
Permalink:  ../b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.gmail.com/
Also on:    postgresql.org/message-id/b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mmoncure@gmail.com, hypertree@yahoo.com
  Subject: Re: Postgres batch write very slow - what to do
  In-Reply-To: <b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.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