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

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 (view raw or flat)
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

pgsql-admin by date

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

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