Re: General performance/load issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: General performance/load issue
Дата
Msg-id 15191.1322330919@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: General performance/load issue  (Tomas Vondra <tv@fuzzy.cz>)
Ответы Re: General performance/load issue  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-general
Tomas Vondra <tv@fuzzy.cz> writes:
> Anyway the output is a bit strange. It's writing a lot of temp files
> that are significantly smaller (about 3MB) than work_mem (128MB).

The most obvious guess about what's doing that is a hash join that has
a drastic overestimate of how many rows it has to hash, so that it's
batching the join unnecessarily.  AFAIR, sorts don't spill to disk until
they've actually reached work_mem, but hash join works differently.

            regards, tom lane

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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: General performance/load issue
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: General performance/load issue