Re: select count(*) performance

From: valgog <valgog(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: select count(*) performance
Date: 2007-08-13 11:38:09
Message-ID: 1187005089.011403.303320@w3g2000hsg.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Aug 11, 5:54 pm, Detlef Rudolph <ru(dot)(dot)(dot)(at)gmx(dot)de> wrote:
> Hello Group,
>
> I've tried the VACUUM ANALYSE, that doesn't help
> much, but VACUUM FULL improves Performance down
> from about 40 secs to 8. I think in future I would
> use the reltuples value from pg_class for the table.
>
> Thanks a lot for your answers and a good Sunday,
> Det

just do not forget, that reltuples is count and updated in pg_class
only during the vacuuming or analyzing of a table... so the value is
only an APPROXIMATE....

-- Valentine

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Vivek Khera 2007-08-13 13:50:11 Re: Dell Hardware Recommendations
Previous Message Detlef Rudolph 2007-08-11 15:54:41 Re: select count(*) performance