Re: performance for high-volume log insertion

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: performance for high-volume log insertion
Дата
Msg-id dcc563d10904262329k4c2e4a01p6fb7e684130f8df5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: performance for high-volume log insertion  (Kris Jurka <books@ejurka.com>)
Ответы Re: performance for high-volume log insertion
Список pgsql-performance
On Sun, Apr 26, 2009 at 11:07 AM, Kris Jurka <books@ejurka.com> wrote:
>
>
> On Thu, 23 Apr 2009, Thomas Kellerer wrote:
>
>> Out of curiosity I did some tests through JDBC.
>>
>> Using a single-column (integer) table, re-using a prepared statement took
>> about 7 seconds to insert 100000 rows with JDBC's batch interface and a
>> batch size of 1000
>>
>
> As a note for non-JDBC users, the JDBC driver's batch interface allows
> executing multiple statements in a single network roundtrip.  This is
> something you can't get in libpq, so beware of this for comparison's sake.

Really?  I thought that executing statements like so:

select * from a;insert ...;delete;

in psql / libpq would execute them all in one trip.

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

Предыдущее
От: Mark Wong
Дата:
Сообщение: Re: Using IOZone to simulate DB access patterns
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: performance for high-volume log insertion