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

From Max Baker
Subject Re: speeding up COUNT and DISTINCT queries
Date
Msg-id 20030313020546.GQ30411@warped.org
Whole thread Raw
In response to Re: speeding up COUNT and DISTINCT queries  (Joe Conway <mail@joeconway.com>)
Responses Re: speeding up COUNT and DISTINCT queries  (Greg Stark <gsstark@mit.edu>)
List pgsql-performance
On Wed, Mar 12, 2003 at 05:57:50PM -0800, Joe Conway wrote:
> Max Baker wrote:
> >Thanks for the help.  I guess i'm not clear on why there is so much
> >extra cruft.  Does postgres leave a little bit behind every time it does
> >an update?  Because this table is updated constantly.
> >
>
> Yes. See:
> http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/routine-vacuuming.html

That would explain why once a night isn't enough.  Thanks.
The contents of this table get refreshed every 4 hours.  I'll add a
vacuum after every refresh and comapre the results in a couple days.

-m

pgsql-performance by date:

Previous
From: Joe Conway
Date:
Subject: Re: speeding up COUNT and DISTINCT queries
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: speeding up COUNT and DISTINCT queries