Re: Automatic optimization of IN clauses via INNER JOIN

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: Automatic optimization of IN clauses via INNER JOIN
Дата
Msg-id 2f4958ff0912180624v48f8b23cyf4c218d41f80e145@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Automatic optimization of IN clauses via INNER JOIN  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Automatic optimization of IN clauses via INNER JOIN  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-performance
On Fri, Dec 18, 2009 at 2:18 PM, Robert Haas <robertmhaas@gmail.com> wrote:

> NOT IN is the only that really kills you as far as optimization is
> concerned.  IN can be transformed to a join.  NOT IN forces a NOT
> (subplan)-type plan, which bites - hard.

in a well designed database (read: not abusing NULLs) - it can be done
with joins too.



--
GJ

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Automatic optimization of IN clauses via INNER JOIN
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Issues with \copy from file