From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | femski <hypertree(at)yahoo(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Postgres batch write very slow - what to do |
Date: | 2007-03-16 13:52:32 |
Message-ID: | b42b73150703160652w3059da67k64e34cc51d5a94cc@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On 3/16/07, Merlin Moncure <mmoncure(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2007-03-16 14:00:47 | Re: Postgres batch write very slow - what to do |
Previous Message | Merlin Moncure | 2007-03-16 13:30:40 | Re: Postgres batch write very slow - what to do |