| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера