Re: bulk inserts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bulk inserts
Дата
Msg-id 11029.1254241071@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bulk inserts  (Sam Mason <sam@samason.me.uk>)
Ответы Re: bulk inserts  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general
Sam Mason <sam@samason.me.uk> writes:
> On Tue, Sep 29, 2009 at 08:45:55AM -0700, Alan Hodgson wrote:
>> I think a big reason is also that the client can stream the data without
>> waiting for a network round trip ack on every statement.

> I don't think so.  I'm pretty sure you can send multiple statements in a
> single round trip.

You can, but that doesn't scale to megabytes of data (at least not
well).

I think the big points are elimination of per-row network and
transaction commit overhead ... but there are some other optimizations
in the COPY path too.

            regards, tom lane

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

Предыдущее
От: Alan Hodgson
Дата:
Сообщение: Re: bulk inserts
Следующее
От: Kelly Jones
Дата:
Сообщение: Upgrade db format without older version of PostgreSQL