Re: Scrub one large table against another

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Scrub one large table against another
Дата
Msg-id 15751.1160535019@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Scrub one large table against another  (Brendan Curran <brendan.curran@gmail.com>)
Ответы Re: Scrub one large table against another  (Brendan Curran <brendan.curran@gmail.com>)
Список pgsql-performance
Brendan Curran <brendan.curran@gmail.com> writes:
> So much time is being spent in the Unique and Sort leaves... I would
> think that it wouldn't need to do the unique portion, since there is no
> DISTINCT clause...

There's nothing in that query suggesting that suppress.email is unique.
If you know that it is, try using a plain join instead of an IN.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Simple join optimized badly?
Следующее
От: Brian Herlihy
Дата:
Сообщение: Re: Simple join optimized badly?