pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Campbell, Lance <lance@uiuc.edu>
Cc: Gregory Stark <stark@enterprisedb.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Suggestions on an update query
Date: Tue, 30 Oct 2007 00:19:42 -0500
Message-ID: <dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.com> (raw)
In-Reply-To: <B10E6810AC2A2F4EA7550D072CDE8760197DC9@SAB-FENWICK.sab.uiuc.edu>
References: <B10E6810AC2A2F4EA7550D072CDE8760197DC6@SAB-FENWICK.sab.uiuc.edu>
	<B10E6810AC2A2F4EA7550D072CDE8760197DC7@SAB-FENWICK.sab.uiuc.edu>
	<20071026141547.70c9c1e0@scratch>
	<87odel1feo.fsf@oxford.xeocode.com>
	<B10E6810AC2A2F4EA7550D072CDE8760197DC9@SAB-FENWICK.sab.uiuc.edu>

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.



view thread (8+ messages)

Message-ID: <dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.com>
Permalink:  ../dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.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: scott.marlowe@gmail.com, lance@uiuc.edu, stark@enterprisedb.com, jd@commandprompt.com
  Subject: Re: Suggestions on an update query
  In-Reply-To: <dcc563d10710292219h414a607ft9e719b33e1981b0d@mail.gmail.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