From: Michael Fuhr <mike@fuhr.org>
To: mrblonde@locked.myftp.org
Cc: pgsql-sql@postgresql.org
Subject: Re: update from multiple rows
Date: Sun, 23 Jan 2005 23:45:49 -0700
Message-ID: <20050124064549.GA39811@winnie.fuhr.org> (raw)
In-Reply-To: <BAY13-F29B358ACA804B6359BB32D89840@phx.gbl>
References: <20050122193539.GA88448@winnie.fuhr.org>
<BAY13-F29B358ACA804B6359BB32D89840@phx.gbl>
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/
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-sql@postgresql.org
Cc: mike@fuhr.org, mrblonde@locked.myftp.org
Subject: Re: update from multiple rows
In-Reply-To: <20050124064549.GA39811@winnie.fuhr.org>
* 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