Re: [GENERAL] select query takes 13 seconds to run with index

Поиск
Список
Период
Сортировка
От hubert depesz lubaczewski
Тема Re: [GENERAL] select query takes 13 seconds to run with index
Дата
Msg-id 20080527082201.GA17943@depesz.com
обсуждение исходный текст
Ответ на Re: [GENERAL] select query takes 13 seconds to run with index  (mark <markkicks@gmail.com>)
Ответы Re: [GENERAL] select query takes 13 seconds to run with index
Список pgsql-performance
On Mon, May 26, 2008 at 04:32:50PM -0700, mark wrote:
> >> EXPLAIN ANALYZE select * from pokes where uid = 578439028 order by id
> >> DESC limit 6;
> > The estimate is way off, when was the last time Vaccum was on the table?
> about a week ago i ran this VACUUM VERBOSE ANALYZE;
> this table is never updated or deleted, rows are just inserted...

1. boost default_statistics_target
2. run analyze more often - daily job for example
3. create index q on pokes (uid, id); should help

depesz

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

Предыдущее
От: PFC
Дата:
Сообщение: Re: [GENERAL] select query takes 13 seconds to run with index
Следующее
От: mark
Дата:
Сообщение: Re: [GENERAL] select query takes 13 seconds to run with index