Re: JDBC addBatch more efficient?

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: JDBC addBatch more efficient?
Дата
Msg-id Pine.BSO.4.64.0804210306420.25756@leary.csoft.net
обсуждение исходный текст
Ответ на JDBC addBatch more efficient?  (David Wall <d.wall@computer.org>)
Ответы Re: JDBC addBatch more efficient?
Re: JDBC addBatch more efficient?
Список pgsql-general

On Sun, 20 Apr 2008, David Wall wrote:

> Just checking if the JDBC library's batch processing code is more efficient
> with respect to the postgresql back end or not.  Does it really batch the
> requests and submit them once over the link, or does it just send them to the
> database to be processed one at a time?
>

The JDBC driver's batch processing is more efficient than regular
execution because it requires fewer network roundtrips so there's less
waiting.  The JDBC batch is broken into an internal batch size of 256
statement and all of these are sent over to the server at once.

Kris Jurka

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

Предыдущее
От: David
Дата:
Сообщение: Insert Rewrite rules
Следующее
От: Klint Gore
Дата:
Сообщение: Re: Insert Rewrite rules