Re: Proposal: speeding up GIN build with parallel workers

Поиск
Список
Период
Сортировка
Искать
От
Peter Geoghegan
Тема
Re: Proposal: speeding up GIN build with parallel workers
Дата
Msg-id
CAM3SWZRecitpRdsg8XmBQ6rAg_dzrpaLMDsfUD0XRnzfpXGXJQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Proposal: speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Oleg Bartunov <obartunov@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers David Steele <david@pgmasters.net>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Dmitry Ivanov <d.ivanov@postgrespro.ru>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [PATCH] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [PATCH] speeding up GIN build with parallel workers Robert Haas <robertmhaas@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Amit Kapila <amit.kapila16@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Robert Haas <robertmhaas@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Peter Geoghegan <pg@heroku.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: [WIP] speeding up GIN build with parallel workers Peter Geoghegan <pg@heroku.com>
Re: [WIP] speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: Proposal: speeding up GIN build with parallel workers Robert Haas <robertmhaas@gmail.com>
Re: Proposal: speeding up GIN build with parallel workers Peter Geoghegan <pg@heroku.com>
Re: Proposal: speeding up GIN build with parallel workers "Constantin S. Pan" <kvapen@gmail.com>
Re: Proposal: speeding up GIN build with parallel workers Jeff Janes <jeff.janes@gmail.com>
Re: Proposal: speeding up GIN build with parallel workers Heikki Linnakangas <hlinnaka@iki.fi>
Re: Proposal: speeding up GIN build with parallel workers Michael Paquier <michael.paquier@gmail.com>
Re: Proposal: speeding up GIN build with parallel workers Peter Geoghegan <pg@heroku.com>
On Fri, Jan 15, 2016 at 2:38 PM, Constantin S. Pan  wrote:
> I have a draft implementation which divides the whole process between
> N parallel workers, see the patch attached. Instead of a full scan of
> the relation, I give each worker a range of blocks to read.

I am currently working on a patch that allows B-Tree index builds to
be performed in parallel. I think I'm a week or two away from posting
it.

Even without parallelism, wouldn't it be better if GIN indexes were
built using tuplesort? I know way way less about the gin am than the
nbtree am, but I imagine that a prominent cost for GIN index builds is
constructing the main B-Tree (the one that's constructed over key
values) itself. Couldn't tuplesort.c be adapted to cover this case?
That would be much faster in general, particularly with the recent
addition of abbreviated keys, while also leaving a clear path forward
to performing the build in parallel.

I understand that a long term ambition for the gin am is to merge it
with nbtree, to almost automatically benefit from enhancements, and to
reduce the maintenance burden of each.

-- 
Peter Geoghegan


В списке pgsql-hackers по дате отправления
От: Julien Rouhaud
Дата:
От: David Rowley
Дата:
Сообщение: Re: Combining Aggregates
FAQ