Re: Inserting a large number of records

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Inserting a large number of records
Дата
Msg-id 6224A2D9-3B6F-4CFB-A69D-0CAB8DDBE94C@fastcrypt.com
обсуждение исходный текст
Ответ на Re: Inserting a large number of records  (Steve Wampler <swampler@noao.edu>)
Список pgsql-jdbc
Here's a version ( a little old ) of the driver with copy implemented.

http://download.postgresintl.com/copy.tar.gz

Dave
On 14-Jul-05, at 11:41 AM, Steve Wampler wrote:

> Oliver Jowett wrote:
>
>> Greg Alton wrote:
>>
>>
>>> What is the most efficient way to insert a large number of
>>> records into
>>> a table?
>>>
>>
>>
>> I use a PreparedStatement INSERT and addBatch() / executeBatch() with
>> autocommit off and no constraints or indexes present.
>>
>
> Does anyone have an idea as to how the performance of this would
> compare
> to using a COPY?  I've used the COPY patches with jdbc and 7.4.x with
> impressive results, but if the above is 'nearly' as good then I
> don't have
> to put off upgrading to 8.x while waiting on jdbc to officially
> include
> support for COPY.  (I can't test the above right now. Maybe soon,
> though.)
>
> Thanks!
> Steve
> --
> Steve Wampler -- swampler@noao.edu
> The gods that smiled on your birth are now laughing out loud.
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that
> your
>        message can get through to the mailing list cleanly
>
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Inserting a large number of records
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Timezone conversion woes