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>)
Список 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 по дате отправления:

Предыдущее
От: Chris Ernst
Дата:
Сообщение: Re: More speed counting rows
Следующее
От: Greg Smith
Дата:
Сообщение: Re: hyperthreaded cpu still an issue in 8.4?