Re: Very slow DELETE on 4000 rows of 55000 row table - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: Very slow DELETE on 4000 rows of 55000 row table
Date
Msg-id 880852.63314.qm@web31801.mail.mud.yahoo.com
Whole thread Raw
In response to Re: Very slow DELETE on 4000 rows of 55000 row table  (Bryce Nesbitt <bryce1@obviously.com>)
Responses Re: Very slow DELETE on 4000 rows of 55000 row table  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
> 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.


pgsql-sql by date:

Previous
From: Bryce Nesbitt
Date:
Subject: Re: Very slow DELETE on 4000 rows of 55000 row table
Next
From: "A. Kretschmer"
Date:
Subject: Re: slow query