Re: More speed counting rows

From: David Wilson <david(dot)t(dot)wilson(at)gmail(dot)com>
To: Developer <dev002(at)pas-world(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: More speed counting rows
Date: 2009-07-27 15:25:23
Message-ID: e7f9235d0907270825h523c302ch4115f4246a4af355@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Jul 27, 2009 at 5:06 AM, Developer<dev002(at)pas-world(dot)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(dot)t(dot)wilson(at)gmail(dot)com

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Youatt 2009-07-27 18:05:45 Re: hyperthreaded cpu still an issue in 8.4?
Previous Message Chris Ernst 2009-07-27 14:59:08 Re: More speed counting rows