Re: speeding up COUNT and DISTINCT queries

Поиск
Список
Период
Сортировка
От Manfred Koizar
Тема Re: speeding up COUNT and DISTINCT queries
Дата
Msg-id a7hv6v4c6vt4vi2eg8s3dmgg3dskggob84@4ax.com
обсуждение исходный текст
Ответ на speeding up COUNT and DISTINCT queries  (Max Baker <max@warped.org>)
Ответы Re: speeding up COUNT and DISTINCT queries  (Max Baker <max@warped.org>)
Список pgsql-performance
On Wed, 12 Mar 2003 14:38:11 -0800, Max Baker <max@warped.org> wrote:
>          ->  Seq Scan on node  (cost=0.00..107737.61 rows=35561
>          width=6) (actual time=6.73..44383.57 rows=34597 loops=1)

35000 tuples in 100000 pages?

>I run VACCUUM ANALYZE once a day.

Try VACUUM FULL VERBOSE ANALAYZE;  this should bring back your table
to a reasonable size.  If the table starts growing again, VACUUM more
often.

Servus
 Manfred

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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: speeding up COUNT and DISTINCT queries
Следующее
От: Max Baker
Дата:
Сообщение: Re: speeding up COUNT and DISTINCT queries