Re: update from multiple rows

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: mrblonde(at)locked(dot)myftp(dot)org
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: update from multiple rows
Date: 2005-01-24 06:45:49
Message-ID: 20050124064549.GA39811@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sun, Jan 23, 2005 at 11:36:11AM +0000, adam etienne wrote:

> In fact the computation is somewhat more complex than an average and the
> data set is quite large... I did some test with view & triggers but it's
> too slow..

Can you provide any more detail about the algorithm and the number
of rows that you might have to insert or update? How did the test
triggers work? If you used row-level triggers and if a trigger on
one row updated multiple rows, then you might have been updating
rows more times than necessary (once by explicit update and one or
more unnecessary times by triggers on other rows).

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Castellotti 2005-01-24 15:09:09 Looking up table names by REFERENCES
Previous Message Mihail Nasedkin 2005-01-24 05:21:08 Re: OID's