Re: Batch insert in CTAS/MatView code

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Batch insert in CTAS/MatView code
Дата
Msg-id be75c9bc-89a7-4227-cfb1-690c005cf36b@iki.fi
обсуждение исходный текст
Ответ на Re: Batch insert in CTAS/MatView code  (Paul Guo <pguo@pivotal.io>)
Ответы Re: Batch insert in CTAS/MatView code  (Paul Guo <pguo@pivotal.io>)
Список pgsql-hackers
On 17/06/2019 15:53, Paul Guo wrote:
> I noticed that to do batch insert, we might need additional memory copy
> sometimes comparing with "single insert"
> (that should be the reason that we previously saw a bit regressions) so a
> good solution seems to fall back
> to "single insert" if the tuple length is larger than a threshold. I set
> this as 2000 after quick testing.

Where does the additional memory copy come from? Can we avoid doing it 
in the multi-insert case?

- Heikki



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] CLUSTER command progress monitor
Следующее
От: Corey Huinker
Дата:
Сообщение: Re: \describe*