Re: select count(*) performance

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: select count(*) performance
Дата
Msg-id 46C01F36.EE98.0025.0@wicourts.gov
обсуждение исходный текст
Ответ на Re: select count(*) performance  (valgog <valgog@gmail.com>)
Список pgsql-performance
>>> valgog <valgog@gmail.com> 08/13/07 6:38 AM >>>
On Aug 11, 5:54 pm, Detlef Rudolph <ru...@gmx.de> wrote:
>
> I've tried the VACUUM ANALYSE, that doesn't help
> much, but VACUUM FULL improves Performance down
> from about 40 secs to 8.

Det,

I don't think anyone meant to suggest that VACUUM ANALYZE would improve the
count speed on a table which had become bloated, but its routine use would
PREVENT a table from becoming bloated.  Once bloat occurs, you need more
agressive maintenance, like VACUUM FULL or CLUSTER.

VACUUM FULL tends to cause index bloat, so you will probably see performance
issues in other queries at the moment.  You will probably need to REINDEX
the table or use CLUSTER to clean that up.

-Kevin




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

Предыдущее
От: Vivek Khera
Дата:
Сообщение: Re: Dell Hardware Recommendations
Следующее
От: "Jonathan Ellis"
Дата:
Сообщение: Re: How to ENABLE SQL capturing???