Re: More speed counting rows

Поиск
Список
Период
Сортировка
Искать
От
David Wilson
Тема
Re: More speed counting rows
Дата
Msg-id
e7f9235d0907270825h523c302ch4115f4246a4af355@mail.gmail.com
Ответ на
Список
Дерево обсуждения
More speed counting rows Developer <dev002@pas-world.com>
Re: More speed counting rows Chris Ernst <cernst@esoft.com>
Re: More speed counting rows Developer <dev002@pas-world.com>
Re: More speed counting rows Scott Marlowe <scott.marlowe@gmail.com>
Re: More speed counting rows David Wilson <david.t.wilson@gmail.com>
On Mon, Jul 27, 2009 at 5:06 AM, Developer 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 по дате отправления
От: Chris Ernst
Дата:
Сообщение: Re: More speed counting rows
От: Greg Smith
Дата:
FAQ