improve 'where not exists' query..

Поиск
Список
Период
Сортировка
От Noel Whelan
Тема improve 'where not exists' query..
Дата
Msg-id 1eb3081c0510251346w76949a22oa9b7a1232d71c823@mail.gmail.com
обсуждение исходный текст
Ответы Re: improve 'where not exists' query..
Список pgsql-general
I'm wondering if there's an ideal way to improve the efficiency of this query:

SELECT i.id FROM items i 
WHERE (NOT (EXISTS (SELECT c.id
FROM contacts c WHERE (c.id = i.id))));

It takes a while to execute, clearly. Thank you,
 
 

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