Re: Huge Data

Sezai YILMAZ <sezai.yilmaz@pro-g.com.tr>

From: Sezai YILMAZ <sezai.yilmaz@pro-g.com.tr>
To: Shridhar Daithankar <shridhar_daithankar@myrealbox.com>
Cc: pgsql-general@postgresql.org
Date: 2004-01-14T13:25:56Z
Lists: pgsql-general
Shridhar Daithankar wrote:

>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';
>
Thank you very much Shridhar. This one is responsive immediately. I 
think I will use this method for gathering row count. But I complain to 
break SQL standards. The code will become unmovable.

-sezai