Re: COPY threads

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY threads
Date: 2018-10-10 19:41:37
Message-ID: B7C6107B-7886-463B-8B36-5750A797285B@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Oct 10, 2018, at 1:24 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> On 2018-10-10 18:50:02 +0200, Laurenz Albe wrote:
>> Rob Sargent wrote:
>>> Can anyone here tell me whether or not the CopyManager facility in JDBC
>>> via org.postgresql:postgresql:42.1.4 is internally multithreaded?
>>> Running on CentOS 7 (all participants), java8, postgres 10.5
>>
>> It isn't, and there would not be much reason for it to be, as COPY
>> in PostgreSQL cannot be parallelized.
>
> s/cannot/is not/.
>
> You obviously can just copy the data into postgres over multiple
> connections if you need to speed COPY up. But that requires splitting up
> the data on the clientside.
>
> Greetings,
>
> Andres Freund
Interesting note, deeply pocketed. The COPY portion is /not/ my problem - that’s plenty fast enough and memory efficient enough straight from the box. I had over looked that I was requesting 33M records, in a map with a longish CSV string as key...then playing sort games with keys and ... well that’s as stupid as I got.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2018-10-10 20:21:54 Re: COPY threads
Previous Message Andres Freund 2018-10-10 19:24:40 Re: COPY threads