Re: Suggestions on an update query - Mailing list pgsql-performance

From Scott Marlowe
Subject Re: Suggestions on an update query
Date
Msg-id dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.com
Whole thread Raw
In response to Re: Suggestions on an update query  ("Campbell, Lance" <lance@uiuc.edu>)
List pgsql-performance
On 10/29/07, Campbell, Lance <lance@uiuc.edu> wrote:
> Thanks for all of your help. The problem was that the result_entry table
> had some constraints that pointed to a third table.  When I removed
> those constraints the performance was amazing.  The update took less
> than seven minutes to execute.  I did not even consider the fact that
> constraints to another table would impact the performance.

Usually you can put an index on the refrerenced key in the foreign
table to speed things up.

pgsql-performance by date:

Previous
From: "Luke Lonergan"
Date:
Subject: Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1
Next
From: Mark Kirkwood
Date:
Subject: Re: partitioned table and ORDER BY indexed_field DESC LIMIT 1