Re: Get Postgres to use multiple proc cores?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Get Postgres to use multiple proc cores?
Дата
Msg-id 4CD3E5B8020000250003735A@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Get Postgres to use multiple proc cores?  ("Oliveiros d'Azevedo Cristina" <oliveiros.cristina@marktest.pt>)
Список pgsql-admin
"Oliveiros d'Azevedo Cristina" <oliveiros.cristina@marktest.pt>
wrote:

> What is faster? A JOIN or a WHERE a IN (SELECT ... )

On 8.4 and later an EXISTS or NOT EXISTS will use semi-join or
anti-join (respectively).  These should usually be much faster than
the IN (SELECT DISTINCT ... ) technique.  Be careful of the
difference in semantics between NOT EXISTS and NOT IN if any of the
columns involved in the matching can be null -- they are *not* the
same thing.

-Kevin

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Get Postgres to use multiple proc cores?
Следующее
От: "Jonathan Hoover"
Дата:
Сообщение: Interesting Query Performance Question