Re: Is there any Faster workaround ??

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
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 21:02:16
Message-ID: 3CB356D8.48F8F5F4@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

How about:

DELETE from t_a where exist (select email from t_b where t_b.email =
t_a.email)

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
>
> regds
> Mallah.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Rajesh Kumar Mallah 2002-04-09 21:32:41 Thank you ! Re: Is there any Faster workaround ??
Previous Message David Stanaway 2002-04-09 20:19:18 Re: Is there any Faster workaround ??