X-Original-To: pgsql-sql@postgresql.org Received: from recom-srv01.recom.it (unknown [213.21.176.71]) by postgresql.org (Postfix) with ESMTP id EDE3A47687C for ; Wed, 5 Mar 2003 05:56:11 -0500 (EST) Subject: DELETE FROM A BLACK LIST To: pgsql-sql@postgresql.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: luca.scaramella@recom.it Date: Wed, 5 Mar 2003 11:45:25 +0100 X-MIMETrack: Serialize by Router on RECOM-SRV01/RECOM(Release 5.0.7 |March 21, 2001) at 05/03/2003 11.45.27 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200303/145 X-Sequence-Number: 12185 Hi all, 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?? Thanks Luca