Re: SELECT Aggregate

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Phillip Smith <phillips(at)weatherbeeta(dot)com(dot)au>, pgsql-sql(at)postgresql(dot)org
Subject: Re: SELECT Aggregate
Date: 2006-06-30 00:51:11
Message-ID: 20060630005111.45426.qmail@web31809.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> I've tried Aaron's suggestion of the GROUP BY and I don't know much about
> it, but it ran for around 17 hours and still going (it had a dedicated Dual
> Xeon 3.0GHz box under RHEL4 running it!)

Maybe, this query that you are trying to run is a good candidate for a "Materialize View".
http://archives.postgresql.org/pgsql-performance/2004-02/msg00279.php

Also before you run your query you might want to see the explain plan is. Perhap it is using a
sequencial scan in a place where an index can improve query preformance.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Phillip Smith 2006-06-30 02:55:05 Re: SELECT Aggregate
Previous Message Phillip Smith 2006-06-30 00:37:24 Re: SELECT Aggregate