Re: Huge Data

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: Huge Data
Дата
Msg-id 200401141812.41884.shridhar_daithankar@myrealbox.com
обсуждение исходный текст
Ответ на Re: Huge Data  (Sezai YILMAZ <sezai.yilmaz@pro-g.com.tr>)
Ответы Re: Huge Data  (Sezai YILMAZ <sezai.yilmaz@pro-g.com.tr>)
Список pgsql-general
On Wednesday 14 January 2004 17:57, Sezai YILMAZ wrote:
> Richard Huxton wrote:
> >What are you using the count() for?
>
> I use count() for some statistics. Just to show how many records
> collected so far.

Rather than doing count(*), you should either cache the count in application
memory

 or analyze often and use following.

'select reltuples from pg_class where relname = 'foo';

This would give you approximate count. I believe it should suffice for your
needs.

HTH

 Shridhar


В списке pgsql-general по дате отправления:

Предыдущее
От: Sezai YILMAZ
Дата:
Сообщение: Re: Huge Data
Следующее
От: "Matthew Lunnon"
Дата:
Сообщение: Re: Huge Data