Re: NOT IN query takes forever

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: NOT IN query takes forever
Дата
Msg-id 23045.1091545157@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: NOT IN query takes forever  ("Merlin Moncure" <merlin.moncure@rcsonline.com>)
Список pgsql-performance
"Merlin Moncure" <merlin.moncure@rcsonline.com> writes:
> Try bumping up shared buffers some and sort mem as much as you safely
> can.

sort_mem is probably the issue here.  The only reasonable way to do NOT
IN is with a hash table, and the default setting of sort_mem is probably
too small to support a 137042-element table.

            regards, tom lane

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

Предыдущее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: pg_autovacuum parameters
Следующее
От: Marius Andreiana
Дата:
Сообщение: Re: NOT IN query takes forever