Re: hashagg slowdown due to spill changes

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: hashagg slowdown due to spill changes
Дата
Msg-id d564fa33a98ceab18e945e3cf57b48991df9524d.camel@j-davis.com
обсуждение исходный текст
Ответ на hashagg slowdown due to spill changes  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Fri, 2020-06-05 at 21:11 -0700, Andres Freund wrote:
> Why isn't the flow more like this:
> 1) prepare_hash_slot()
> 2) if (aggstate->hash_spill_mode) goto 3; else goto 4
> 3) entry = LookupTupleHashEntry(&hash); if (!entry)
> hashagg_spill_tuple();
> 4) InsertTupleHashEntry(&hash, &isnew); if (isnew) initialize(entry)

I see, you are suggesting that I change around the execGrouping.c
signatures to return the hash, which will avoid the extra call. That
makes more sense.

Regards,
    Jeff Davis







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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: snowball release
Следующее
От: Andres Freund
Дата:
Сообщение: Re: hashagg slowdown due to spill changes