Re: postgresql is slow with larger table even it is in RAM - Mailing list pgsql-performance

From hubert depesz lubaczewski
Subject Re: postgresql is slow with larger table even it is in RAM
Date
Msg-id 20080325090823.GA5431@depesz.com
Whole thread Raw
In response to postgresql is slow with larger table even it is in RAM  ("sathiya psql" <sathiya.psql@gmail.com>)
Responses Re: postgresql is slow with larger table even it is in RAM
List pgsql-performance
On Tue, Mar 25, 2008 at 02:05:20PM +0530, sathiya psql wrote:
> Any Idea on this ???

yes. dont use count(*).

if you want whole-table row count, use triggers to store the count.

it will be slow. regeardless of whether it's in ram or on hdd.

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

pgsql-performance by date:

Previous
From: "sathiya psql"
Date:
Subject: Re: postgresql is slow with larger table even it is in RAM
Next
From: Craig Ringer
Date:
Subject: Re: postgresql is slow with larger table even it is in RAM