Re: Minor performance improvement in transition to external sort

Поиск
Список
Период
Сортировка
Искать
От
Simon Riggs
Тема
Re: Minor performance improvement in transition to external sort
Дата
Msg-id
CA+U5nMJdnFmKh8++bRmq4P9jzsfzzQGPebctpsgUk6t02x3Atg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Michael Paquier <michael.paquier@gmail.com>
Re: Minor performance improvement in transition to external sort Jeff Janes <jeff.janes@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
Re: Minor performance improvement in transition to external sort Jeremy Harris <jgh@wizmail.org>
Re: Minor performance improvement in transition to external sort Simon Riggs <simon@2ndQuadrant.com>
Re: Minor performance improvement in transition to external sort Bruce Momjian <bruce@momjian.us>
Re: Minor performance improvement in transition to external sort Robert Haas <robertmhaas@gmail.com>
On 6 February 2014 18:21, Jeff Janes  wrote:
> On Tue, Feb 4, 2014 at 2:22 PM, Jeremy Harris  wrote:
>>
>> The attached patch replaces the existing siftup method for heapify with
>> a siftdown method. Tested with random integers it does 18% fewer
>> compares and takes 10% less time for the heapify, over the work_mem
>> range 1024 to 1048576.
>
>
> Thanks for working on this.

+1

Your patch isn't linked properly from the CF manager though.

If you like patches like this then there's a long(er) list of
optimizations already proposed previously around sorting. It would be
good to have someone work through them for external sorts. I believe
Noah is working on parallel internal sort (as an aside).

There's also an optimization possible for merge joins where we use the
output of the first sort as an additional filter on the second sort.
That can help when we're going to join two disjoint tables.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-hackers по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Re: psql \d+ and oid display
От: Greg Stark
Дата:
Сообщение: Re: psql \d+ and oid display
FAQ