Re: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases
Дата
Msg-id AANLkTimF3OBQPjkRqfAW095agLUJ0-p2rTQlf7yaUX6i@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #5480: Autovacuum interferes with operations (e.g. truncate) on very large databases  ("Sakari A. Maaranen" <sam@iki.fi>)
Список pgsql-bugs
On Sat, May 29, 2010 at 5:44 PM, Sakari A. Maaranen <sam@iki.fi> wrote:
> For now, I can work around this on the client side by splitting the
> updates into a million separate transactions instead of a single big
> one. Will be slow, but it should work.

In general, it's better to group things into larger transactions - the
case where the pending trigger queue exhausts system memory is an
unfortunate exception.  You might want to think about, say, a thousand
transactions of a thousand records, instead of a million transactions
with one record each.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: BUG #5469: regexp_matches() has poor behaviour and more poor documentation
Следующее
От: Matthew Nourse
Дата:
Сообщение: Re: BUG #5477: CREATE DOMAIN NOT NULL constraints not always enforced for INSERT with subquery