pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc G. Fournier <scrappy@postgresql.org>
To: Greg Stark <gsstark@mit.edu>
Cc: Marc G. Fournier <scrappy@postgresql.org>
Cc: Dennis Bjorklund <db@zigo.dhs.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: *very* slow query to summarize data for a month ...
Date: Wed, 12 Nov 2003 12:08:56 -0400 (AST)
Message-ID: <20031112120814.H56037@ganymede.hub.org> (raw)
In-Reply-To: <87oevii15f.fsf@stark.dyndns.tv>
References: <Pine.LNX.4.44.0311110747090.26313-100000@zigo.dhs.org>
	<20031111134925.L56037@ganymede.hub.org>
	<87oevii15f.fsf@stark.dyndns.tv>



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 ...




view thread (19+ messages)

Message-ID: <20031112120814.H56037@ganymede.hub.org>
Permalink:  ../20031112120814.H56037@ganymede.hub.org/
Also on:    postgresql.org/message-id/20031112120814.H56037@ganymede.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: scrappy@postgresql.org, gsstark@mit.edu, db@zigo.dhs.org
  Subject: Re: *very* slow query to summarize data for a month ...
  In-Reply-To: <20031112120814.H56037@ganymede.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox