Re: Scrub one large table against another (vmstat output) - Mailing list pgsql-performance

From Markus Schaber
Subject Re: Scrub one large table against another (vmstat output)
Date
Msg-id 452DE6E7.6050808@logix-tt.com
Whole thread Raw
In response to Re: Scrub one large table against another (vmstat output)  (Brendan Curran <brendan.curran@gmail.com>)
List pgsql-performance
Hi, Brendan,

Brendan Curran wrote:
>> What prevents you from using an aggregate function?
>
> I guess I could actually obtain the results in an aggregate function and
> use those to maintain a summary table. There is a web view that requires
> 'as accurate as possible' numbers to be queried per group (all 40 groups
> are displayed on the same page) and so constant aggregates over the
> entire table would be a nightmare.

That sounds just like a case for GROUP BY and a materialized view.

Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

pgsql-performance by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Scrub one large table against another
Next
From: "H.J. Sanders"
Date:
Subject: FW: Simple join optimized badly?