Re: select count(*) from a large table is very slow

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Jessica Richard" <rjessil(at)yahoo(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: select count(*) from a large table is very slow
Date: 2007-05-18 13:22:38
Message-ID: 36e682920705180622t7e60d5e0rf4143d4af336967f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 5/18/07, Jessica Richard <rjessil(at)yahoo(dot)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(at)enterprisedb(dot)com
Iselin, New Jersey 08830 | http://www.enterprisedb.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jessica Richard 2007-05-18 13:26:17 cross database references...
Previous Message Jessica Richard 2007-05-18 13:20:05 select from dblink very slow