From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Cc: luca.scaramella@recom.it
Subject: Re: DELETE FROM A BLACK LIST
Date: Wed, 05 Mar 2003 15:27:39 +0100
Message-ID: <3E66095B.247A3D1B@rodos.fzk.de> (raw)
>
> I have a Blacklist table containing about 1000 ID to delete from
another
> table (T1 about 1440294 records)
> If i use the SQL
>
> DELETE FROM T1 WHERE T1.ID IN (SELECT BLACKLIST.ID FROM BLACKLIST)
>
> the operation is very slow .
>
> There is a faster way to do the same operation??
>
Try
DELETE FROM T1 WHERE T1.ID = BLACKLIST.ID
It really works.
Regards, Christoph
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: ch@rodos.fzk.de, luca.scaramella@recom.it
Subject: Re: DELETE FROM A BLACK LIST
In-Reply-To: <3E66095B.247A3D1B@rodos.fzk.de>
* 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