Re: psql COPY with JDBC

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: psql COPY with JDBC
Дата
Msg-id 44329D38.7070808@logix-tt.com
обсуждение исходный текст
Ответ на Re: psql COPY with JDBC  ("Christopher Condit" <condit@sdsc.edu>)
Список 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 по дате отправления:

Предыдущее
От: Markus Schaber
Дата:
Сообщение: Re: psql COPY with JDBC
Следующее
От: "Vidas Makauskas"
Дата:
Сообщение: No Primary Keys (pg7.4.2 on SLES9)