Re: DELETE FROM A BLACK LIST - Mailing list pgsql-sql

From Christoph Haller
Subject Re: DELETE FROM A BLACK LIST
Date
Msg-id 3E66095B.247A3D1B@rodos.fzk.de
Whole thread Raw
In response to DELETE FROM A BLACK LIST  (luca.scaramella@recom.it)
List pgsql-sql
>
> 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





pgsql-sql by date:

Previous
From: Christoph Haller
Date:
Subject: Re: SETOF
Next
From: Miriam Fernández Galicia
Date:
Subject: unsuscribe