From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Bryce Nesbitt <bryce1@obviously.com>
To: pgsql-sql@postgresql.org
Subject: Re: Very slow DELETE on 4000 rows of 55000 row table
Date: Wed, 4 Apr 2007 21:46:10 -0700 (PDT)
Message-ID: <880852.63314.qm@web31801.mail.mud.yahoo.com> (raw)
In-Reply-To: <4614784F.3040901@obviously.com>
> But I DELETE all conflicting those rows prior to the slow DELETE, just
> so the FK check is never hit. Should I be looking at subverting the FK
> check mechanism somehow? The necessary index would be huge, and
> relevant only on this particular operation which happens every few
> months, if that.
true, but without an index, it still has to scan the table just to be sure.
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: rabroersma@yahoo.com, bryce1@obviously.com
Subject: Re: Very slow DELETE on 4000 rows of 55000 row table
In-Reply-To: <880852.63314.qm@web31801.mail.mud.yahoo.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