Re: Slow query problem

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Slow query problem
Дата
Msg-id 20040109042338.GD31586@wolff.to
обсуждение исходный текст
Ответ на Re: Slow query problem  (Mike Glover <mpg4@duluoz.net>)
Список pgsql-performance
On Thu, Jan 08, 2004 at 19:27:16 -0800,
  Mike Glover <mpg4@duluoz.net> wrote:
>
> You should bump sort_mem as high as you can stand.  with only 8MB sort
> memory available, you're swapping intermediate sort pages to disk --
> a lot. Try the query with sort_mem set to 75MB (to do the entire sort in
> memory).

Postgres also might be able to switch to a hash aggregate instead of
using a sort if sortmem is made large enough to hold the results for
all of the (estimated) groups.

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

Предыдущее
От: Seum-Lim Gan
Дата:
Сообщение: PostgreSQL vs. Oracle disk space usage
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Slow query problem