Re: Sort performance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sort performance
Дата
Msg-id 5444.1157126236@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Sort performance  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
>     Mem     Runs    Time
>     ----    ----    ----
>     1MB    18    8.25s
>     10MB    3    5.6s
>     100MB    qsort    6.1s

I'm confused what this means exactly?  Are you saying that in the first
two cases, there were 18 and 3 sorted runs generated in the initial
pass, and in the third case we just did the sort in memory using qsort?

How many items are being sorted, exactly?  Since it's text, it probably
also makes a big difference what LC_COLLATE setting you are using.
Non-C sort locale could mean that the strcoll() calls swamp all else.

How long does it take sort(1) to do the same task?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Getting a move on for 8.2 beta
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Revert change to turn autovacuum on by default.