Re: performance of count(*)

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: performance of count(*)
Date: 2011-05-06 22:15:38
Message-ID: 20110506221538.GN29489@shinkuro.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, May 06, 2011 at 03:43:02PM -0600, Scott Ribe wrote:

> In this case, it depends on the result of a pretty complex join that
> involves some gnarly time calculations, and finding the unmatched
> rows from one side of an outer join.

Yeah, in that case the HOT suggestions are very important. I strongly
recomment you experiment in a test system with real data and
pathological cases in particular, in order to see what happens when
the outlier cases inevitably, Murphy willing, crop up. That's not to
say you should arrange your plans for them, but forewarned is
forearmed.

A

--
Andrew Sullivan
ajs(at)crankycanuck(dot)ca

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2011-05-07 00:13:50 Re: performance of count(*)
Previous Message Scott Ribe 2011-05-06 21:43:02 Re: performance of count(*)