From: | Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com> |
---|---|
To: | luca(dot)scaramella(at)recom(dot)it |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: DELETE FROM A BLACK LIST |
Date: | 2003-03-05 15:21:34 |
Message-ID: | Pine.LNX.4.44.0303051321150.4354-100000@matrix.gatewaynet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Wed, 5 Mar 2003 luca(dot)scaramella(at)recom(dot)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(at)postgresql(dot)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(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2003-03-05 15:22:46 | Re: LIMIT and SUBQUERIES |
Previous Message | Kim Petersen | 2003-03-05 14:47:40 | Re: problematic query (for me ;-) [solved? - sorry to bother] |