Re: VACUUM ANALYZE downgrades performance

Поиск
Список
Период
Сортировка
От Steinar H. Gunderson
Тема Re: VACUUM ANALYZE downgrades performance
Дата
Msg-id 20041202163044.GA30522@uio.no
обсуждение исходный текст
Ответ на Re: VACUUM ANALYZE downgrades performance  (Dmitry Karasik <dmitry@karasik.eu.org>)
Список pgsql-performance
On Thu, Dec 02, 2004 at 05:07:17PM +0100, Dmitry Karasik wrote:
> While I agree that generally this is true, look how stupid this
> behavior looks in this particular case: A developer creates a table
> and index, knowing that the table will be large and will be intensively
> used. An admin runs 'VACUUM ANALYZE' when table is occasionally empty,
> and next, say, 1 day, until another 'VACUUM ANALYZE' starts, the index
> is simply not used! Sure you don't suppose to run 'VACUUM ANALYZE' every
> 5 minutes as a solution, right?

No, you run autovacuum, which automatically re-analyzes at approximately the
right time.

/* Steinar */
--
Homepage: http://www.sesse.net/

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

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: VACUUM ANALYZE downgrades performance
Следующее
От: Shridhar Daithankar
Дата:
Сообщение: Re: VACUUM ANALYZE downgrades performance