Re: Need to run CLUSTER to keep performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Need to run CLUSTER to keep performance
Дата
Msg-id 24775.1194535980@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Need to run CLUSTER to keep performance  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Ответы Re: Need to run CLUSTER to keep performance  (Rafael Martinez <r.m.guerrero@usit.uio.no>)
Список pgsql-performance
Rafael Martinez <r.m.guerrero@usit.uio.no> writes:
> Heikki Linnakangas wrote:
>> On a small table like that you could run VACUUM every few minutes
>> without much impact on performance. That should keep the table size in
>> check.

> Ok, we run VACUUM ANALYZE only one time a day, every night.

There's your problem.

Reading between the lines I gather that you think an update is "free"
in the sense of not creating a need for vacuum.  It's not --- it's
exactly equivalent to an insert + a delete, and it leaves behind a
dead row that needs to be vacuumed.  If you do a lot of updates, you
need to vacuum.

            regards, tom lane

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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: Estimation problem with a LIKE clause containing a /
Следующее
От: Vivek Khera
Дата:
Сообщение: Re: hp ciss on freebsd