From: Uwe C. Schroeder <uwe@oss4u.com>
To: pgsql-admin@postgresql.org
Cc: sathiya psql <sathiya.psql@gmail.com>
Subject: Re: postgresql is slow with larger table even it is in RAM
Date: Tue, 25 Mar 2008 09:55:28 -0800
Message-ID: <200803251055.28593.uwe@oss4u.com> (raw)
In-Reply-To: <f966c2ee0803250148i526f0669w97c583aa03dcf2f3@mail.gmail.com>
References: <f966c2ee0803250136j2b44a10j4fb54afbee3ed8ed@mail.gmail.com>
<20080325094147.40317ea2@twoflower.in.publishing.hu>
<f966c2ee0803250148i526f0669w97c583aa03dcf2f3@mail.gmail.com>
Can you provide the output of
explain analyze select count(id) from table;
?
Uwe
On Tuesday 25 March 2008, sathiya psql wrote:
> On Tue, Mar 25, 2008 at 2:11 PM, CZUCZY Gergely
> <gergely.czuczy@harmless.hu>
>
> wrote:
> > May I ask, do you have any indeces or a primary key on that table?
>
> yes, i have both the index and primary key on a column "id",
> and am doing the
>
> SELECT count(id) from TABLE;
>
> this is taking 3 seconds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: uwe@oss4u.com, sathiya.psql@gmail.com
Subject: Re: postgresql is slow with larger table even it is in RAM
In-Reply-To: <200803251055.28593.uwe@oss4u.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox