From: Jonah H. Harris <jonah.harris@gmail.com>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: select count(*) from a large table is very slow
Date: Fri, 18 May 2007 09:22:38 -0400
Message-ID: <36e682920705180622t7e60d5e0rf4143d4af336967f@mail.gmail.com> (raw)
In-Reply-To: <133912.35849.qm@web56406.mail.re3.yahoo.com>
References: <133912.35849.qm@web56406.mail.re3.yahoo.com>
On 5/18/07, Jessica Richard <rjessil@yahoo.com> wrote:
> I have a ~30 milliow row table, select count(*) from this table is very very
> very slow...
Yes, see the topic "Much Ado about COUNT(*)"
> How dow I get it run faster?
Unfortunately, aside from reducing the size of the table, you can't.
--
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
33 Wood Ave S, 3rd Floor | jharris@enterprisedb.com
Iselin, New Jersey 08830 | http://www.enterprisedb.com/
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: jonah.harris@gmail.com, rjessil@yahoo.com
Subject: Re: select count(*) from a large table is very slow
In-Reply-To: <36e682920705180622t7e60d5e0rf4143d4af336967f@mail.gmail.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