Re: Is there any Faster workaround ??

From: David Stanaway <david(at)stanaway(dot)net>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: PostgResql SQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Is there any Faster workaround ??
Date: 2002-04-09 20:19:18
Message-ID: 1018383583.5240.10.camel@debian
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 2002-04-09 at 14:54, Rajesh Kumar Mallah wrote:
> Hi folks,
>
> We require to do below or similar quite often
>
> DELETE from t_a where email in (select email from t_b);
>
> everyone knows "IN" is pain fully slow currently in pgsql
> is the any fster alternative to above query
>

DELETE from t_a where exists (select email from t_b where t_b.email =
t_a.email);

--
David Stanaway

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jean-Luc Lachance 2002-04-09 21:02:16 Re: Is there any Faster workaround ??
Previous Message Isaac Mesa Florez 2002-04-09 20:16:53 Help To Out