Re: "not in" clause too slow?

Поиск
Список
Период
Сортировка
От Ottavio Campana
Тема Re: "not in" clause too slow?
Дата
Msg-id 46F8CB14.5020705@campana.vi.it
обсуждение исходный текст
Ответ на Re: "not in" clause too slow?  (Alban Hertroys <a.hertroys@magproductions.nl>)
Список pgsql-general
Alban Hertroys ha scritto:
> Ottavio Campana wrote:
>> 2) how can I speed it up? by using indexes? or by changing the query?
>
> Do you have indices on mytable.id and copy_mytable.id?
> Does using NOT EXISTS get you any better results?

Eventually I had to select not all the table fields but only the primary
key and successively loop on the table again. Thus I've been able to
exploit the indexes.


Вложения

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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: PgpoolAdmin installation
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: "not in" clause too slow?