From: Ken <ken@upfactor.com>
To: Richard Huxton <dev@archonet.com>
To: pgsql-performance@postgresql.org
Subject: Re: Help with tuning this query (with explain analyze finally)
Date: Fri, 4 Mar 2005 11:36:26 -0500
Message-ID: <000e01c520d8$4f899a90$780ba8c0@javadude> (raw)
References: <001001c51ef4$3849eeb0$6a01a8c0@KEN>
<200503022152.13211.josh@agliodbs.com>
<004601c51fbe$828bbb50$6a01a8c0@KEN>
<200503030935.14537.josh@agliodbs.com>
<001d01c5204a$b440edf0$6a01a8c0@KEN>
<4227AA36.2080700@arbash-meinel.com>
<000e01c5207a$1f668ac0$6a01a8c0@KEN>
<42288529.7000803@archonet.com>
Richard,
What do you mean by summary table? Basically a cache of the query into a
table with replicated column names of all the joins? I'd probably have to
whipe out the table every minute and re-insert the data for each carrier in
the system. I'm not sure how expensive this operation would be, but I'm
guessing it would be fairly heavy-weight. And maintaince would be a lot
harder because of the duplicated columns, making refactorings on the
database more error-prone. Am I understanding your suggestion correctly?
Please correct me if I am.
> Can you turn the problem around? Calculate what you want for all users
> (once every 60 seconds) and stuff those results into a summary table. Then
> let the users query the summary table as often as they like (with the
> understanding that the figures aren't going to update any faster than once
> a minute)
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: ken@upfactor.com, dev@archonet.com
Subject: Re: Help with tuning this query (with explain analyze finally)
In-Reply-To: <000e01c520d8$4f899a90$780ba8c0@javadude>
* 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