Re: Is there any Faster workaround ??

Поиск
Список
Период
Сортировка
От Jean-Luc Lachance
Тема Re: Is there any Faster workaround ??
Дата
Msg-id 3CB356D8.48F8F5F4@nsd.ca
обсуждение исходный текст
Ответ на Is there any Faster workaround ??  (Rajesh Kumar Mallah <mallah@trade-india.com>)
Список 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@postgresql.org


В списке pgsql-sql по дате отправления:

Предыдущее
От: David Stanaway
Дата:
Сообщение: Re: Is there any Faster workaround ??
Следующее
От: Rajesh Kumar Mallah
Дата:
Сообщение: Thank you ! Re: Is there any Faster workaround ??