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

Re: Performance of count(*)

From: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
To: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
Cc: "Andreas Tille" <tillea(at)rki(dot)de>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance of count(*)
Date: 2007-03-22 14:33:29
Message-ID: 36e682920703220733s322788f7i5f89339466c7938c@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
On 3/22/07, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> As others suggest select count(*) from table is very special case
> which non-mvcc databases can optimize for.

Well, other MVCC database still do it faster than we do.  However, I
think we'll be able to use the dead space map for speeding this up a
bit wouldn't we?

-- 
Jonah H. Harris, Software Architect | phone: 732.331.1324
EnterpriseDB Corporation            | fax: 732.331.1301
33 Wood Ave S, 3rd Floor            | jharris(at)enterprisedb(dot)com
Iselin, New Jersey 08830            | http://www.enterprisedb.com/

In response to

Responses

pgsql-performance by date

Next:From: Mario WeilguniDate: 2007-03-22 14:36:32
Subject: Re: Performance of count(*)
Previous:From: Michael StoneDate: 2007-03-22 14:18:10
Subject: Re: Performance of count(*)

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