Re: More speed counting rows - Mailing list pgsql-performance

From David Wilson
Subject Re: More speed counting rows
Date
Msg-id e7f9235d0907270825h523c302ch4115f4246a4af355@mail.gmail.com
Whole thread Raw
In response to More speed counting rows  (Developer <dev002@pas-world.com>)
List pgsql-performance
On Mon, Jul 27, 2009 at 5:06 AM, Developer<dev002@pas-world.com> wrote:
> Hello,
>
> I am trying to optimize the count of files when I am using filters
> (select by some row/s parameter/s)
> My question is:
> Any method for indirect count like ordered indexes + quadratic count?
> Any module?
> Any suggestion?

If all you need is a good-enough estimate, you can try reporting the
tuples count out of the stats tables. It'll only be as up-to-date as
autovac makes it, though. I do this in one app to give me ballpark
figures for some constantly-growing tables.


--
- David T. Wilson
david.t.wilson@gmail.com

pgsql-performance by date:

Previous
From: Chris Ernst
Date:
Subject: Re: More speed counting rows
Next
From: Greg Smith
Date:
Subject: Re: hyperthreaded cpu still an issue in 8.4?