Re: Scrub one large table against another (vmstat output)

Поиск
Список
Период
Сортировка
От Markus Schaber
Тема Re: Scrub one large table against another (vmstat output)
Дата
Msg-id 452DE6E7.6050808@logix-tt.com
обсуждение исходный текст
Ответ на Re: Scrub one large table against another (vmstat output)  (Brendan Curran <brendan.curran@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: Scrub one large table against another
Следующее
От: "H.J. Sanders"
Дата:
Сообщение: FW: Simple join optimized badly?