Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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            |

In response to

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group