Re: Damn slow query

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Damn slow query
Дата
Msg-id 3DA4B195.9020503@joeconway.com
обсуждение исходный текст
Ответ на Re: Damn slow query  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Magnus Naeslund(f) wrote:
> One thing to note here is that the JOIN query that Joe suggested is both
> faster than the subselect thing (no suprise) but also don't care if
> z2test has an index on it or not.

It's worth noting though that JOIN is not always the fastest method. I've 
found situations where NOT EXISTS was significantly faster than the LEFT JOIN 
method (although both are usually orders of magnatude faster than NOT IN).

Joe



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

Предыдущее
От: "Magnus Naeslund(f)"
Дата:
Сообщение: Re: Damn slow query
Следующее
От: 韩近强
Дата:
Сообщение: inquiry about multi-row resultset in functions