pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Thank you ! Re: Is there any Faster workaround ??
2+ messages / 2 participants
[nested] [flat]

* Thank you ! Re: Is there any Faster workaround ??
@ 2002-04-09 21:32 ` Rajesh Kumar Mallah <mallah@trade-india.com>
  1 sibling, 0 replies; 2+ messages in thread

From: Rajesh Kumar Mallah @ 2002-04-09 21:32 UTC (permalink / raw)
  To: Jean-Luc Lachance <jllachan@nsd.ca>; +Cc: pgsql-sql

Thanks so much!

i think this ques. has been answered before also in
this mailing list  sorry for asking...

regds
mallah.

Jean-Luc Lachance wrote:

> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Thank you ! Re: Is there any Faster workaround ??
@ 2002-04-15 15:23 ` Roberto Mello <rmello@cc.usu.edu>
  1 sibling, 0 replies; 2+ messages in thread

From: Roberto Mello @ 2002-04-15 15:23 UTC (permalink / raw)
  To: Bernd von den Brincken <bvdb@asa.de>; +Cc: pgsql-sql

On Wed, Apr 10, 2002 at 12:24:26PM +0200, Bernd von den Brincken wrote:

> >> > everyone knows "IN" is pain fully slow currently in pgsql
> >> > is the any fster alternative to above query
> 
> Yes this question was posted before - and if so, and if the answer is so 
> simple - would it not make sense to implement this wisdom in the optimizer?

The IN construct is slow in Oracle and probably other RDBMSs too. I don't
know if the PostgreSQL implementation is any slower than others (I don't
think it is).

-Roberto
-- 
+----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+
  Roberto Mello - Computer Science, USU - http://www.brasileiro.net/ 
       http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer    
The more things change, the more they stay the same.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-04-15 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-04-09 21:32 ` Rajesh Kumar Mallah <mallah@trade-india.com>
2002-04-15 15:23 ` Roberto Mello <rmello@cc.usu.edu>

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