pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: [External] Multiple COPY on the same table
Date: Mon, 20 Aug 2018 12:49:31 -0500
Message-ID: <6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com> (raw)
In-Reply-To: <BYAPR07MB5446BA6E176FA1C5B2B83372A5320@BYAPR07MB5446.namprd07.prod.outlook.com>
References: <1497638817.10129815.1534776875333.ref@mail.yahoo.com>
	<1497638817.10129815.1534776875333@mail.yahoo.com>
	<BYAPR07MB5446BA6E176FA1C5B2B83372A5320@BYAPR07MB5446.namprd07.prod.outlook.com>

Maybe he just has a large file that needs to be loaded into a table...

On 08/20/2018 11:47 AM, Vijaykumar Jain wrote:
> Hey Ravi,
>
> What is the goal you are trying to achieve here.
> To make pgdump/restore faster?
> To make replication faster?
> To make backup faster ?
>
> Also no matter how small you split the files into, if network is your 
> bottleneck then I am not sure you can attain n times the benefit my simply 
> sending the files in parallel but yeah maybe some benefit.
> But then for parallel processing you also need to ensure your server is 
> having relevant resources or else it will just be a lot of context 
> switching I guess ?
> Pg dump has an option to dump in parallel
> pgbasebackup is single threaded I read but pgbackrest can allow better 
> parallel processing in backups.
> There is also logical replication where you can selectively replicate your 
> tables to avoid bandwidth issues.
> I might have said a lot and nothing may be relevant, but you need to let 
> us know the goal you want to achieve :)
>
> Regards,
> Vijay
> ----------------------------------------------------------------------------
> *From:* Ravi Krishna <sravikrishna@aol.com>
> *Sent:* Monday, August 20, 2018 8:24:35 PM
> *To:* pgsql-general@lists.postgresql.org
> *Subject:* [External] Multiple COPY on the same table
> Can I split a large file into multiple files and then run copy using each 
> file.  The table does not contain any
> serial or sequence column which may need serialization. Let us say I split 
> a large file to 4 files.  Will the
> performance boost by close to 4x??
>
> ps: Pls ignore my previous post which was without a subject (due to mistake)

-- 
Angular momentum makes the world go 'round.

view thread (10+ messages)  latest in thread

Message-ID: <6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com>
Permalink:  ../6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com/
Also on:    postgresql.org/message-id/6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: [External] Multiple COPY on the same table
  In-Reply-To: <6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com>
  References: <1497638817.10129815.1534776875333.ref@mail.yahoo.com> <1497638817.10129815.1534776875333@mail.yahoo.com> <BYAPR07MB5446BA6E176FA1C5B2B83372A5320@BYAPR07MB5446.namprd07.prod.outlook.com> <6c621687-64ad-7898-2628-3e9f4412df7f@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox