Re: psql COPY with JDBC - Mailing list pgsql-jdbc

From Markus Schaber
Subject Re: psql COPY with JDBC
Date
Msg-id 44329D38.7070808@logix-tt.com
Whole thread Raw
In response to Re: psql COPY with JDBC  ("Christopher Condit" <condit@sdsc.edu>)
List pgsql-jdbc
Hi, Christopher,

Christopher Condit wrote:
> Yes, that's true, but isn't it significantly faster to use the bulk
> loader for many records.

Have you tried the following:

Use a Prepared Statement for the insert, then addBatch() it and
executeBatch() it at the end, with autocommit off?

This should be the fastest non proprietary way to load data into a database.

HTH,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

pgsql-jdbc by date:

Previous
From: Markus Schaber
Date:
Subject: Re: psql COPY with JDBC
Next
From: "Vidas Makauskas"
Date:
Subject: No Primary Keys (pg7.4.2 on SLES9)