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

From: Kenneth Marshall <ktm(at)rice(dot)edu>
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:19:20
Message-ID: 20070518131920.GA7069@it.is.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Make a summary table and select from there instead.

Ken

On Fri, May 18, 2007 at 06:15:25AM -0700, Jessica Richard wrote:
> I have a ~30 milliow row table, select count(*) from this table is very very very slow...
>
> How dow I get it run faster?
>
> Thanks,
> Jessica
>
>
> ---------------------------------
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jessica Richard 2007-05-18 13:20:05 select from dblink very slow
Previous Message Jessica Richard 2007-05-18 13:15:25 select count(*) from a large table is very slow