Re: SELECT Aggregate - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: SELECT Aggregate
Date
Msg-id 20060630005111.45426.qmail@web31809.mail.mud.yahoo.com
Whole thread Raw
In response to Re: SELECT Aggregate  ("Phillip Smith" <phillips@weatherbeeta.com.au>)
Responses Re: SELECT Aggregate
List 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.




pgsql-sql by date:

Previous
From: "Phillip Smith"
Date:
Subject: Re: SELECT Aggregate
Next
From: "Phillip Smith"
Date:
Subject: Re: SELECT Aggregate