X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7C00611F6284 for ; Tue, 4 Apr 2006 13:22:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23003-08 for ; Tue, 4 Apr 2006 13:22:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (unknown [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 5E33D11F629D for ; Tue, 4 Apr 2006 13:22:04 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (T83dd.t.pppool.de [89.55.131.221]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 3594D656C9; Tue, 4 Apr 2006 18:22:50 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 68FA91819E7E7; Tue, 4 Apr 2006 18:22:16 +0200 (CEST) Message-ID: <44329D38.7070808@logix-tt.com> Date: Tue, 04 Apr 2006 18:22:16 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: psql COPY with JDBC References: <845AADAC1106E44996327D62097E4C6B8AA6E6@et.ad.sdsc.edu> In-Reply-To: <845AADAC1106E44996327D62097E4C6B8AA6E6@et.ad.sdsc.edu> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200604/38 X-Sequence-Number: 14972 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