X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6829353BE8 for ; Wed, 11 May 2005 11:23:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 19013-01 for ; Wed, 11 May 2005 14:23:22 +0000 (GMT) Received: from presinet-main.presinet.com (unknown [209.53.156.1]) by svr1.postgresql.org (Postfix) with ESMTP id 422B453225 for ; Wed, 11 May 2005 11:23:21 -0300 (ADT) Received: from [10.10.1.151] (BRICK [10.10.1.151]) by presinet-main.presinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2658.3) id KJAKLXGV; Wed, 11 May 2005 07:20:11 -0700 Message-ID: <42821558.1010707@PresiNET.com> Date: Wed, 11 May 2005 07:23:20 -0700 From: Bricklen Anderson User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Kings-Lynne Cc: Sam Vilain , pgsql-performance@postgresql.org Subject: Re: Prefetch References: <200505100652.51401.molson@oceanconsulting.com> <42818B2E.8060403@vilain.net> <42818FB1.4060403@familyhealth.com.au> In-Reply-To: <42818FB1.4060403@familyhealth.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.027 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/207 X-Sequence-Number: 12371 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. _______________________________