Re: select count(*) performance (vacuum did not help)

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: select count(*) performance (vacuum did not help)
Дата
Msg-id 20070924112907.cbede7e6.wmoran@collaborativefusion.com
обсуждение исходный текст
Ответ на Re: select count(*) performance (vacuum did not help)  (Gábor Farkas <gabor@nekomancer.net>)
Список pgsql-performance
In response to "Gábor Farkas" <gabor@nekomancer.net>:

> Heikki Linnakangas wrote:
> > Gábor Farkas wrote:
> >>
> >> if i do a full vacuum to that table only, will the database still serve
> >> data from the other tables at a normal speed?
> >
> > Yes. The extra I/O load vacuum full generates while it's running might
> > disrupt other activity, though.
> >
>
> i see.
>
> will i achieve the same thing by simply dropping that table and
> re-creating it?

Yes.  Once you've done so, keep up the vacuum schedule you've already
established.  You may want to (as has already been suggested) explicitly
vacuum this table after large delete operations as well.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023


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

Предыдущее
От: "Fabiola Fernández"
Дата:
Сообщение: TEXT or LONGTEXT?
Следующее
От: "Alexander Staubo"
Дата:
Сообщение: Re: TEXT or LONGTEXT?