Re: Sort time

Поиск
Список
Период
Сортировка
От scott.marlowe
Тема Re: Sort time
Дата
Msg-id Pine.LNX.4.33.0211141259030.1942-100000@css120.ihs.com
обсуждение исходный текст
Ответ на Sort time  (pginfo <pginfo@t1.unisoftbg.com>)
Список pgsql-performance
On Thu, 14 Nov 2002, pginfo wrote:

> Hi,
>
> Why is the sort part of my query getting so much time?
>
> I run a relative complex query and it gets about 50 sec.
> For sorting I need another 50 sec!
>
> Can I increase the sort memory for better performance?
> How meny memory is needet for the sort in pg.
> The same data readet in java and sorted cost 10 sec !

Increasing sort_mem can help, but often the problem is that your query
isn't optimal.  If you'd like to post the explain analyze output of your
query, someone might have a hint on how to increase the efficiency of the
query.


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: [GENERAL] Upgrade to dual processor machine?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] Upgrade to dual processor machine?