Re: Parallel Aggregate

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Parallel Aggregate
Дата
Msg-id CAKJS1f-RaS=iNCOML_TDo1qF5V=EDPD0LR1tXWCAsu4Wgv0MYw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Parallel Aggregate  (James Sewell <james.sewell@lisasoft.com>)
Ответы Re: Parallel Aggregate  (James Sewell <james.sewell@lisasoft.com>)
Re: Parallel Aggregate  (Paul Ramsey <pramsey@cleverelephant.ca>)
Список pgsql-hackers
On 14 March 2016 at 14:52, James Sewell <james.sewell@lisasoft.com> wrote:
> One question - how is the upper limit of workers chosen?

See create_parallel_paths() in allpaths.c. Basically the bigger the
relation (in pages) the more workers will be allocated, up until
max_parallel_degree.

There is also a comment in that function which states:
/*
* Limit the degree of parallelism logarithmically based on the size of the
* relation.  This probably needs to be a good deal more sophisticated, but we
* need something here for now.
*/

So this will likely see some revision at some point, after 9.6.

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



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

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: Relation extension scalability
Следующее
От: Etsuro Fujita
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Only try to push down foreign joins if the user mapping OIDs mat