Re: NOT IN query takes forever

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: NOT IN query takes forever
Дата
Msg-id 41103CC5.7030207@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: NOT IN query takes forever  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
Список pgsql-performance
> explain analyze actually runs the query to do timings.  Just run explain
> and see what you come up with.  More than likely there is a nestloop in
> there which is causing the long query time.
>
> Try bumping up shared buffers some and sort mem as much as you safely
> can.

Just use an EXISTS query I suggest.

Chris

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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: Performance Bottleneck
Следующее
От: Martin Foster
Дата:
Сообщение: Re: Performance Bottleneck