Re: Postgres batch write very slow - what to do

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Postgres batch write very slow - what to do
Дата
Msg-id 45F6C99B.1080507@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Postgres batch write very slow - what to do  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Postgres batch write very slow - what to do
Список pgsql-performance
Tom Lane wrote:
> It sounds like you're incurring a network round trip for each row, which
> will be expensive even for a co-located application.  Perhaps Oracle's
> JDBC driver is smart enough to avoid that.  I'm not sure what tricks are
> available for bulk loading with our JDBC driver --- the page Heikki
> mentioned explains things from a server perspective but I dunno how that
> translates into JDBC.  The folks who hang out on pgsql-jdbc could
> probably give you some tips.

OP said he's using addBatch/executeBatch with a batch size of 100. The
JDBC driver sends the whole batch before waiting for responses.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От:
Дата:
Сообщение: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres batch write very slow - what to do