Re: Why Select Count(*) from table - took over 20 minutes?

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Why Select Count(*) from table - took over 20 minutes?
Date: 2010-10-26 17:33:51
Message-ID: 201010261033.51267.ahodgson@simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On October 26, 2010 10:18:41 am Ozz Nixon wrote:
> I have hung off indexes for each column, to resolve my previous
> "performance" issue from 3+ weeks ago. However, COUNT() is still dog slow
> - this table is a write once, read many... *never* update, nor delete.
>
> Any suggestions?

If you need to do count(*) on 60 million row tables, you will probably need
faster hardware.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lincoln Yeoh 2010-10-26 18:05:47 Re: Full text search in Chinese
Previous Message John R Pierce 2010-10-26 17:33:05 Re: Why Select Count(*) from table - took over 20 minutes?