pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: psql COPY with JDBC
Date: Tue, 04 Apr 2006 18:22:16 +0200
Message-ID: <44329D38.7070808@logix-tt.com> (raw)
In-Reply-To: <845AADAC1106E44996327D62097E4C6B8AA6E6@et.ad.sdsc.edu>
References: <845AADAC1106E44996327D62097E4C6B8AA6E6@et.ad.sdsc.edu>

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



view thread (14+ messages)  latest in thread

Message-ID: <44329D38.7070808@logix-tt.com>
Permalink:  ../44329D38.7070808@logix-tt.com/
Also on:    postgresql.org/message-id/44329D38.7070808@logix-tt.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: schabi@logix-tt.com
  Subject: Re: psql COPY with JDBC
  In-Reply-To: <44329D38.7070808@logix-tt.com>
  References: <845AADAC1106E44996327D62097E4C6B8AA6E6@et.ad.sdsc.edu> <44329D38.7070808@logix-tt.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