pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bricklen Anderson <BAnderson@PresiNET.com>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Sam Vilain <sam@vilain.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Prefetch
Date: Wed, 11 May 2005 07:23:20 -0700
Message-ID: <42821558.1010707@PresiNET.com> (raw)
In-Reply-To: <42818FB1.4060403@familyhealth.com.au>
References: <200505100652.51401.molson@oceanconsulting.com>
	<42818B2E.8060403@vilain.net>
	<42818FB1.4060403@familyhealth.com.au>

Christopher Kings-Lynne wrote:
>> Another trick you can use with large data sets like this when you want 
>> results
>> back in seconds is to have regularly updated tables that aggregate the 
>> data
>> along each column normally aggregated against the main data set.
> 
> 
>> Maybe some bright person will prove me wrong by posting some working
>> information about how to get these apparently absent features working.
> 
> 
> Most people just use simple triggers to maintain aggregate summary 
> tables...
> 
> Chris

However, if (insert) triggers prove to be too much of a performance hit, try 
cron'd functions that perform the aggregation for you. This system works well 
for us, using the pk's (sequence) for start and stop points.

-- 
_______________________________

This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.
_______________________________



view thread (13+ messages)  latest in thread

Message-ID: <42821558.1010707@PresiNET.com>
Permalink:  ../42821558.1010707@PresiNET.com/
Also on:    postgresql.org/message-id/42821558.1010707@PresiNET.com

 · 

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: BAnderson@PresiNET.com, chriskl@familyhealth.com.au, sam@vilain.net
  Subject: Re: Prefetch
  In-Reply-To: <42821558.1010707@PresiNET.com>

* 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