pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephan Szabo <sszabo@megazone.bigpanda.com>
To: teknokrat <teknokrat@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: performance of foreign key constraints
Date: Thu, 28 Aug 2003 10:28:19 -0700 (PDT)
Message-ID: <20030828102646.Q9762-100000@megazone.bigpanda.com> (raw)
In-Reply-To: <bildcd$232q$1@news.hub.org>

On Thu, 28 Aug 2003, teknokrat wrote:

> I have a table that has about 20 foreign key constraints on it. I think
> this is a bit excessive and am considering removing them ( they are all
> related to the same table and I don't think there is much chance of any
> integrity violations ). Would this improve performance or not?

It depends on your frequency of inserts/updates to the table with the
constraint and the frequency of update/delete to the table(s) being
refered to. My guess is probably.  You may wish to leave some of the
constraints (decide which are the most important), but 20 does seem a bit
excessive in general.




view thread (7+ messages)  latest in thread

Message-ID: <20030828102646.Q9762-100000@megazone.bigpanda.com>
Permalink:  ../20030828102646.Q9762-100000@megazone.bigpanda.com/
Also on:    postgresql.org/message-id/20030828102646.Q9762-100000@megazone.bigpanda.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: sszabo@megazone.bigpanda.com, teknokrat@yahoo.com
  Subject: Re: performance of foreign key constraints
  In-Reply-To: <20030828102646.Q9762-100000@megazone.bigpanda.com>
  References: <bildcd$232q$1@news.hub.org> <20030828102646.Q9762-100000@megazone.bigpanda.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