Re: help on a query

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: help on a query
Дата
Msg-id 87sm8o4m25.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: help on a query  (Michelle Murrain <tech@murrain.net>)
Список pgsql-sql
Michelle Murrain <tech@murrain.net> writes:

> The OUTER JOIN version is quite a bit more efficient (by an order of magnitude)
> than the option with WHERE NOT EXISTS subquery.

This is going to be heavily dependent on the version of postgres. IN/NOT IN
execution has improved a lot in 7.4 and later. If you're still on 7.3 then the
outer join will be better. But in 7.4 I would actually expect the NOT IN or
the NOT EXISTS to be faster.

-- 
greg



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Record Count
Следующее
От: "C. Bensend"
Дата:
Сообщение: Impact of foreign keys on a simple count(*) ?