Re: Inlining comparators as a performance optimisation

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Inlining comparators as a performance optimisation
Дата
Msg-id CAEYLb_WSF7Esy9TrbSpzaco+8U0NFLUx2VNSt00ncMdqLba_EQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Inlining comparators as a performance optimisation  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Inlining comparators as a performance optimisation  (Bruce Momjian <bruce@momjian.us>)
Re: Inlining comparators as a performance optimisation  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 29 November 2011 15:31, Bruce Momjian <bruce@momjian.us> wrote:
> These are exciting advanced you are producing and I am hopeful we can
> get this included in Postgres 9.2.

Thanks Bruce.

>I have mentioned already that I
> think parallelism is the next big Postgres challenge, and of course, one
> of the first areas for parallelism is sorting.

I'm not sure that sorting has that much to recommend it as an initial
target of some new backend parallelism other than being easy to
implement. I've observed the qsort_arg specialisations in this patch
out-perform stock qsort_arg by as much as almost 3 times. However, the
largest decrease in a query's time that I've observed was 45%, and
that was for a contrived worst-case for quicksort, but about 25% is
much more typical of queries similar to the ones I've shown, for more
normative data distributions. While that's a respectable gain, it
isn't a paradigm shifting one, and it makes parallelising qsort itself
for further improvements quite a lot less attractive - there's too
many other sources of overhead.

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


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

Предыдущее
От: Jan Kundrát
Дата:
Сообщение: Re: [Review] Include detailed information about a row failing a CHECK constraint into the error message
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: review: CHECK FUNCTION statement