From: David Stanaway <david@stanaway.net>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: PostgResql SQL Mailing List <pgsql-sql@postgresql.org>
Subject: Re: Is there any Faster workaround ??
Date: 09 Apr 2002 15:19:18 -0500
Message-ID: <1018383583.5240.10.camel@debian> (raw)
In-Reply-To: <3CB346F6.1DD7CFB9@trade-india.com>
References: <3CB346F6.1DD7CFB9@trade-india.com>
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
Attachments:
signature.asc (application/pgp-signature, 523B) download
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: david@stanaway.net, mallah@trade-india.com
Subject: Re: Is there any Faster workaround ??
In-Reply-To: <1018383583.5240.10.camel@debian>
* 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