Re: Huge Data

From: Sezai YILMAZ <sezai(dot)yilmaz(at)pro-g(dot)com(dot)tr>
To: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Huge Data
Date: 2004-01-14 13:25:56
Message-ID: 40054364.7020803@pro-g.com.tr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message terry 2004-01-14 13:31:37 Re: Using regular expressions in LIKE
Previous Message Richard Huxton 2004-01-14 13:19:46 Re: Huge Data