Re: How to find entries missing in 2nd table? - Mailing list pgsql-sql

From Richard Broersma Jr
Subject Re: How to find entries missing in 2nd table?
Date
Msg-id 20060713161651.39567.qmail@web31809.mail.mud.yahoo.com
Whole thread Raw
In response to How to find entries missing in 2nd table?  (alex-lists-pgsql@yuriev.com)
Responses Re: How to find entries missing in 2nd table?  ("Aaron Bono" <postgresql@aranya.com>)
List pgsql-sql
> > SELECT controller_id FROM control
> > WHERE controller_id NOT IN
> > (SELECT DISTINCT controller_id FROM datapack);
> The DISTINCT is not necessary.  I have heard with Oracle that DISTINCT is a
> huge performance problem.  Is that true on PostgreSQL also?

From my experience, it does not preform as well as the standard group by clause. I noticed a ~20%
increase in query run times.


Regards,
Richard Broersma Jr.


pgsql-sql by date:

Previous
From: "Jaime Casanova"
Date:
Subject: Re: Unexpected SQL error for UPDATE
Next
From: "Aaron Bono"
Date:
Subject: Re: How to find entries missing in 2nd table?