Re: Postgres batch write very slow - what to do

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: Postgres batch write very slow - what to do
Дата
Msg-id 9e4684ce0703162152u4abe97fcg64d0804f57ce95b1@mail.gmail.com
обсуждение исходный текст
Ответ на Postgres batch write very slow - what to do  (femski <hypertree@yahoo.com>)
Список pgsql-performance
On 3/13/07, femski <hypertree@yahoo.com> wrote:
> I have a batch application that writes approx. 4 million rows into a narrow
> table. I am using JDBC addBatch/ExecuteBatch with auto commit turned off.
> Batch size is 100. So far I am seeing Postgres take roughly five times the
> time it takes to do this in the Oracle.

you can try to use pg_bulkload.
since it is called as standard function you shouldn't have problems
with jdbc. and it's apparently fast.

depesz

http://pgfoundry.org/projects/pgbulkload/

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

Предыдущее
От: "Bruce McAlister"
Дата:
Сообщение: Re: PostgreSQL 8.2.3 VACUUM Timings/Performance
Следующее
От: Vincenzo Romano
Дата:
Сообщение: function call vs staright query