Re: lots of updates on small table

Поиск
Список
Период
Сортировка
Искать
От
Rod Taylor
Тема
Re: lots of updates on small table
Дата
Msg-id
1121359062.780.31.camel@home
Ответ на
lots of updates on small table (alison@mirrabooka.com (Alison Winters))
Список
Дерево обсуждения
lots of updates on small table alison@mirrabooka.com (Alison Winters)
Re: lots of updates on small table Rod Taylor <pg@rbt.ca>
Re: lots of updates on small table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: lots of updates on small table alison@mirrabooka.com (Alison Winters)
Re: lots of updates on small table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: lots of updates on small table Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: lots of updates on small table John A Meinel <john@arbash-meinel.com>
Re: lots of updates on small table Tom Lane <tgl@sss.pgh.pa.us>
Re: lots of updates on small table alison@mirrabooka.com (Alison Winters)
Re: lots of updates on small table alison@mirrabooka.com (Alison Winters)
On Thu, 2005-07-14 at 15:08 +1000, Alison Winters wrote:
> Hi,
> 
> Our application requires a number of processes to select and update rows
> from a very small (<10 rows) Postgres table on a regular and frequent
> basis.  These processes often run for weeks at a time, but over the

Are these long running transactions or is the process issuing many short
transactions?

If your transaction lasts a week, then a daily vacuum isn't really doing
anything.

I presume you also run ANALYZE in some shape or form periodically?

> space of a few days we find that updates start getting painfully slow.
> We are running a full vacuum/analyze and reindex on the table every day,

If they're short transactions, run vacuum (not vacuum full) every 100 or
so updates. This might even be once a minute.

Analyze periodically as well.

-- 

В списке pgsql-performance по дате отправления
От: Alvaro Herrera
Дата:
От: Jim C. Nasby
Дата:
FAQ