slow count()

From: Zavier Sheran <zsheran(at)yahoo(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: slow count()
Date: 2005-01-28 05:17:56
Message-ID: 20050128051756.54352.qmail@web14424.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

quote from manual:
--
Unfortunately, there is no similarly trivial query
that can be used to improve the performance of count()
when applied to the entire table
--

does count(1) also cause a sequential scan of the
entire table? It should be able to just use the
primary keys.

-Zavier

=====
---
zavier.net - Internet Solutions
---


__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Thomas F.O'Connell 2005-01-28 05:22:33 Triggers During COPY
Previous Message Kevin Brown 2005-01-28 03:59:39 Re: [SQL] OFFSET impact on Performance???