Re: speeding up COUNT and DISTINCT queries - Mailing list pgsql-performance

From Manfred Koizar
Subject Re: speeding up COUNT and DISTINCT queries
Date
Msg-id a7hv6v4c6vt4vi2eg8s3dmgg3dskggob84@4ax.com
Whole thread Raw
In response to speeding up COUNT and DISTINCT queries  (Max Baker <max@warped.org>)
Responses Re: speeding up COUNT and DISTINCT queries
List 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 by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Re: speeding up COUNT and DISTINCT queries
Next
From: Max Baker
Date:
Subject: Re: speeding up COUNT and DISTINCT queries