Re: How to find entries missing in 2nd table?

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: How to find entries missing in 2nd table?
Дата
Msg-id 20060713161651.39567.qmail@web31809.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на How to find entries missing in 2nd table?  (alex-lists-pgsql@yuriev.com)
Ответы Re: How to find entries missing in 2nd table?
Список 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 по дате отправления:

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: Unexpected SQL error for UPDATE
Следующее
От: "Aaron Bono"
Дата:
Сообщение: Re: How to find entries missing in 2nd table?