Re: Why does adding SUM and GROUP BY destroy performance?

From: David Link <dvlink(at)yahoo(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Why does adding SUM and GROUP BY destroy performance?
Date: 2003-09-18 17:10:29
Message-ID: 20030918171029.18179.qmail@web13505.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Ron, Thanks Christopher for your excellent feedback.

I guess it's back to the drawing board. This is a very late hour
business requirement change. And we need quick real-time results.

Two things are being considered:

1. loading the non aggregate query entirely into memory (using perl
cgi, currently, but looking at the possiblity of doing this in the
database with either PL/perl or PL/plsql, though I don't know what
would be gained by doing it that way). And handling the summing and
then the sort ourselves in the program, -- or --

2. preprocessing a lot of the data at pre-determined times.
Essentially doubling the size of our database.

I'd be open to any other suggestions.

Thanks again. very much.
-David

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Rawnsley 2003-09-18 17:11:01 Re: State of Beta 2
Previous Message Lamar Owen 2003-09-18 16:50:33 Re: State of Beta 2