Re: *very* slow query to summarize data for a month ...

Поиск
Список
Период
Сортировка
От Marc G. Fournier
Тема Re: *very* slow query to summarize data for a month ...
Дата
Msg-id 20031112120814.H56037@ganymede.hub.org
обсуждение исходный текст
Ответ на Re: *very* slow query to summarize data for a month ...  (Greg Stark <gsstark@mit.edu>)
Список pgsql-performance

On Wed, 12 Nov 2003, Greg Stark wrote:

>
> "Marc G. Fournier" <scrappy@postgresql.org> writes:
>
> > Just as a side note, just doing a straight scan for the records, with no
> > SUM()/GROUP BY involved, with the month_trunc() index is still >8k msec:
>
> One of the other advantages of these aggregate tables was that we could
> purge the old data much sooner with much less resistance from the
> business. Since the reports were all still available and a lot of ad-hoc
> queries could still be done without the raw data anyways.

Actually, what I've done is do this at the 'load stage' ... but same
concept ...


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Seeking help with a query that takes too long
Следующее
От: "Nick Fankhauser"
Дата:
Сообщение: Re: Seeking help with a query that takes too long