pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Atkins <steve@blighty.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: best way to write large data-streams quickly?
Date: Mon, 9 Apr 2018 09:01:08 -0700
Message-ID: <1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com> (raw)
In-Reply-To: <CAA0uU3XCiReRsK9-4Zsk0Mdhan1dG2Q4dj6iPQiEc-kOJumLyw@mail.gmail.com>
References: <CAA0uU3XCiReRsK9-4Zsk0Mdhan1dG2Q4dj6iPQiEc-kOJumLyw@mail.gmail.com>


> On Apr 9, 2018, at 8:49 AM, Mark Moellering <markmoellering@psyberation.com> wrote:
> 
> Everyone,
> 
> We are trying to architect a new system, which will have to take several large datastreams (total of ~200,000 parsed files per second) and place them in a database.  I am trying to figure out the best way to import that sort of data into Postgres.  
> 
> I keep thinking i can't be the first to have this problem and there are common solutions but I can't find any.  Does anyone know of some sort method, third party program, etc, that can accept data from a number of different sources, and push it into Postgres as fast as possible?

Take a look at http://ossc-db.github.io/pg_bulkload/index.html. Check the benchmarks for different situations compared to COPY.

Depending on what you're doing using custom code to parse your data and then do multiple binary COPYs in parallel may be better.

Cheers,
  Steve





view thread (4+ messages)  latest in thread

Message-ID: <1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com>
Permalink:  ../1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com/
Also on:    postgresql.org/message-id/1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.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: steve@blighty.com
  Subject: Re: best way to write large data-streams quickly?
  In-Reply-To: <1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.com>
  References: <CAA0uU3XCiReRsK9-4Zsk0Mdhan1dG2Q4dj6iPQiEc-kOJumLyw@mail.gmail.com> <1137E1BF-BEEE-4EB9-B284-2AC923C2A016@blighty.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