Re: long transaction

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: long transaction
Дата
Msg-id b42b73150808111203l14df2d2dicd4350f04d64e838@mail.gmail.com
обсуждение исходный текст
Ответ на Re: long transaction  ("Sabin Coanda" <sabin.coanda@deuromedia.ro>)
Список pgsql-performance
On Mon, Aug 11, 2008 at 2:53 AM, Sabin Coanda
<sabin.coanda@deuromedia.ro> wrote:
> No, I cannot use VACUUM inside the transaction, and it seems this is the
> problem, although autovacuum is set.
>
> However I checked the following scenario to find a solution. I call the
> 30000 statements without transaction. The performance it not changed. But
> when I add VACUUM command after each 20 statement set, I got the linear
> performance that I want. Unfortunatelly this is not possible inside a
> transaction.
>
> Do you know how could I solve my problem, keeping the 30000 statements
> inside a single transaction ?

long running transactions can be evil. is there a reason why this has
to run in a single transaction?

merlin

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

Предыдущее
От: Craig James
Дата:
Сообщение: Re: Using PK value as a String
Следующее
От: "Sabin Coanda"
Дата:
Сообщение: Re: long transaction