Re: need help with a query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: need help with a query
Дата
Msg-id 12689.1192811641@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: need help with a query  (Pavel Velikhov <pvelikhov@yahoo.com>)
Список pgsql-performance
Pavel Velikhov <pvelikhov@yahoo.com> writes:
> Got a very different query plan this time, with a hash join between links and articles. At least now postgres is
usingboth shared memory buffers and working mem, but its still completely IO bound, only getting in 5-6% CPU once in a
while.I guess I can't squeeze more out of the laptop, but I also have a machine with 16GB RAM that I'll try this on
next.Should I allocate tons of memory into shared buffers or into the working memory? 

For a hash join, I think you want to raise work_mem as high as you can
(without driving the system into swapping).  It won't read any block of
the tables more than once, so there's no point in having lots of
buffers.

            regards, tom lane

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

Предыдущее
От: Pavel Velikhov
Дата:
Сообщение: Re: need help with a query
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: how to improve the performance of creating index