Re: Runtime variations during day

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Runtime variations during day
Дата
Msg-id 1360791352.37906.YahooMailNeo@web162901.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Runtime variations during day  (Carlos Henrique Reimer <carlos.reimer@opendb.com.br>)
Ответы Re: Runtime variations during day  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Runtime variations during day  (Vick Khera <vivek@khera.org>)
Список pgsql-general
Carlos Henrique Reimer <carlos.reimer@opendb.com.br> wrote:

> I`m trying to figure out why a query runs in 755ms in the morning
> and 20054ms (26x) in the evening.

I would make autovacuum settings much more aggressive, or schedule
periodic VACUUM and/or ANALYZE runs during the day.

> database size is 40GB and memory 64GB

If you haven't already done so, I would use settings something like
this in postgresql.conf:

effective_cache_size = 32GB
seq_page_cost = 0.1
random_page_cost = 0.1
cpu_tuple_cost = 0.03

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Joek Hondius
Дата:
Сообщение: Re: Runtime variations during day
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Runtime variations during day