Re: 7.3.4 on Linux: UPDATE .. foo=foo+1 degrades massivly over time

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: 7.3.4 on Linux: UPDATE .. foo=foo+1 degrades massivly over time
Дата
Msg-id 20040421181854.GD30712@wolff.to
обсуждение исходный текст
Ответ на 7.3.4 on Linux: UPDATE .. foo=foo+1 degrades massivly over time  (Philipp Buehler <pb-pgsql-g@mlsub.buehler.net>)
Список pgsql-general
On Wed, Apr 21, 2004 at 19:52:15 +0200,
  Philipp Buehler <pb-pgsql-g@mlsub.buehler.net> wrote:
>
> While running
> UPDATE banner SET counterhalf=counterhalf+1 WHERE BannerID=50
> several thousand times, the return times degrade (somewhat linear).

This is to be expected. Postgres uses MVCC and everytime you do an update
a new row is created.

> A following VACCUM brings back return times to 'start' - but I cannot
> run VACUUM any other minute (?). And it exactly vaccums as many tuples
> as I updated.. sure thing:

Why not? You only have to vacuum this one table. Vacuuming it once a minute
should be doable.

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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Can I reset the lower bound of an array.
Следующее
От: Mike Nolan
Дата:
Сообщение: Re: PL/SQL question