Re: why autocommit mode is slow?

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: why autocommit mode is slow?
Дата
Msg-id 20110408145628.GY13162@shinkuro.com
обсуждение исходный текст
Ответ на why autocommit mode is slow?  (Szymon Guz <mabewlun@gmail.com>)
Список pgsql-general
On Thu, Apr 07, 2011 at 10:59:50PM +0200, Szymon Guz wrote:
> Hi,
> this is maybe a stupid question, but I don't know how to explain to my
> coworkers why performing many inserts in autocommit mode is so much slower
> than making all of them in one transaction.
>
> Why is that so slow?

If you do BEGIN; [statement]; COMMIT; one after another, is that as
slow as autocommit?  (My bet is yes.)

A

--
Andrew Sullivan
ajs@crankycanuck.ca

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

Предыдущее
От: Katherine Jeschke
Дата:
Сообщение: Surge 2011 CFP Deadline Extended
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Using Function returning setof record in JOIN