From: Kenneth Marshall <ktm@rice.edu>
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 08:19:20 -0500
Message-ID: <20070518131920.GA7069@it.is.rice.edu> (raw)
In-Reply-To: <133912.35849.qm@web56406.mail.re3.yahoo.com>
References: <133912.35849.qm@web56406.mail.re3.yahoo.com>
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.
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: ktm@rice.edu, rjessil@yahoo.com
Subject: Re: select count(*) from a large table is very slow
In-Reply-To: <20070518131920.GA7069@it.is.rice.edu>
* 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