From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: luca.scaramella@recom.it
Cc: pgsql-sql@postgresql.org
Subject: Re: DELETE FROM A BLACK LIST
Date: Wed, 5 Mar 2003 13:21:34 -0200 (GMT+2)
Message-ID: <Pine.LNX.4.44.0303051321150.4354-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <OF93BA7C2A.CBC03AC0-ONC1256CE0.003B13D5@recom.it>
On Wed, 5 Mar 2003 luca.scaramella@recom.it wrote:
>
> 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??
use EXISTS
>
> Thanks
> Luca
>
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
--
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-210-8981112
fax: +30-210-8981877
email: achill@matrix.gatewaynet.com
mantzios@softlab.ece.ntua.gr
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: achill@matrix.gatewaynet.com, luca.scaramella@recom.it
Subject: Re: DELETE FROM A BLACK LIST
In-Reply-To: <Pine.LNX.4.44.0303051321150.4354-100000@matrix.gatewaynet.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