Re: Recommended technique for large imports? - Mailing list pgsql-jdbc

From Sam Varshavchik
Subject Re: Recommended technique for large imports?
Date
Msg-id 1032048102.814881.6211.501.oak@ny.email-scan.com
Whole thread Raw
In response to Recommended technique for large imports?  (Stephen Bacon <sbacon@13x.com>)
List pgsql-jdbc
Stephen Bacon writes:

> Now I know the COPY command is much faster because it doesn't update the
> indexes after every row insert, but building that and passing it via
> jdbc seems iffy (or C, PHP, etc. for that matter).

I think someone was working on a COPY implementation for jdbc, but I don't
think it's there yet.

> Can anyone give a recommended technique for this sort of process?

Feed a few thousand INSERTs to addBatch(), then call executeBatch().  That
seems to be the fastest way to import data, at this time.


pgsql-jdbc by date:

Previous
From: Stephen Bacon
Date:
Subject: Recommended technique for large imports?
Next
From: snpe
Date:
Subject: Patch for getProcedureColumns