Re: Query kills machine.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Query kills machine.
Дата
Msg-id 4015.1093361011@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Query kills machine.  (Stef <svb@ucs.co.za>)
Ответы Re: Query kills machine.  (Stef <svb@ucs.co.za>)
Список pgsql-performance
Stef <svb@ucs.co.za> writes:
> Reducing sort_mem to 4096 seems to make it run in a reasonable time
> again. Any idea why? The database does a whole lot of huge sorts
> every day, so I thought upping this parameter would help.

Not if you haven't got the RAM to support it :-(

Another thing you might look at is ANALYZEing the tables again after
you've loaded all the new data.  The row-count estimates seem way off
in these plans.  You might need to increase the statistics target,
too, to get better plans.

            regards, tom lane

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

Предыдущее
От: "Magnus Naeslund(pg)"
Дата:
Сообщение: Re: Query kills machine.
Следующее
От: Gaetano Mendola
Дата:
Сообщение: [FUN] Performance increase?