Re: Degrading performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Degrading performance
Дата
Msg-id 7850.1054560991@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Degrading performance  ("Mindaugas Riauba" <mind@bi.lt>)
Ответы Re: Degrading performance  ("scott.marlowe" <scott.marlowe@ihs.com>)
Список pgsql-performance
"Mindaugas Riauba" <mind@bi.lt> writes:
>   I have table with slowly degrading performance. Table is special is
> such way that all its rows are updated every 5 minutes (routers interfaces).
> vacuum does not help. vacuum full does but I'd like to avoid it.

VACUUM will do the trick, you just need to do it every five minutes or
so.  I suggest a cron job to vacuum just the one table.

> INFO:  Rel ifdata: Pages: 4887 --> 17; Tuple(s) moved: 776.
>         CPU 0.30s/0.35u sec elapsed 1.65 sec.

That says you waited way too long to vacuum --- over two hundred update
cycles, evidently.

            regards, tom lane

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

Предыдущее
От: Paul Smith
Дата:
Сообщение: Re: FW: Query Plan problem
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Enabling and Disabling Sequencial Scan