Re: Optimizing sum() operations

Поиск
Список
Период
Сортировка
От Dobes Vandermeer
Тема Re: Optimizing sum() operations
Дата
Msg-id 7324d9a20810031648u34dad60co7e51b0c88031e055@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Optimizing sum() operations  (Mark Roberts <mailing_lists@pandapocket.com>)
Список pgsql-novice
On Fri, Oct 3, 2008 at 4:06 PM, Mark Roberts
<mailing_lists@pandapocket.com> wrote:
>> I think that if there are a lot of rows that match the query, it'll
>> take a long time, so I thought I'd start inquiring about whether
>> anyone has a good algorithm for accelerating these kinds of queries.
>
> The best solution that I've found for things like this is to look to
> data warehousing: if you have a frequently used aggregation of facts,
> then preaggregate (summarize) it and pull from there instead.

Do you mean creating another table and manually caching the values in
there?  I'm not sure what "data warehousing" means in this context.


--

Dobes Vandermeer
Director, Habitsoft Inc.
dobesv@habitsoft.com
778-891-2922

В списке pgsql-novice по дате отправления:

Предыдущее
От: Mark Roberts
Дата:
Сообщение: Re: Optimizing sum() operations
Следующее
От: "Harold A. Giménez Ch."
Дата:
Сообщение: Re: Optimizing sum() operations