Re: select query takes 13 seconds to run with index

Поиск
Список
Период
Сортировка
От David Wilson
Тема Re: select query takes 13 seconds to run with index
Дата
Msg-id e7f9235d0805261709k638dbb23jef43b8fe62861fc7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: select query takes 13 seconds to run with index  (Justin <justin@emproshunts.com>)
Список pgsql-general
On Mon, May 26, 2008 at 7:26 PM, Justin <justin@emproshunts.com> wrote:
> The estimate is way off, when was the last time Vaccum was on the table?

I'm going to second this- run "ANALYZE pokes;" and then test the query
again; I'll bet you'll get much better results.

It's not the VACUUM that matters so much as the ANALYZE, and it
definitely needs to be done on occasion if you're adding a lot of
records. Do you have the autovacuum daemon running? (And if not, why
not?)


--
- David T. Wilson
david.t.wilson@gmail.com

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

Предыдущее
От: "Gregory Williamson"
Дата:
Сообщение: Re: select query takes 13 seconds to run with index
Следующее
От: Justin
Дата:
Сообщение: Re: select query takes 13 seconds to run with index