pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Loading 500m json files to database
Date: Tue, 24 Mar 2020 13:35:07 -0600
Message-ID: <812bd681-7444-9f1e-aab8-768230bb6147@gmail.com> (raw)
In-Reply-To: <SA0PR19MB4255C6E91FA6414FFCF61CAAA4F10@SA0PR19MB4255.namprd19.prod.outlook.com>
References: <1584959088557-0.post@n3.nabble.com>
	<7B61A925-5F3D-421C-949B-77B1EE026168@1nar.com.tr>
	<1468923B-049B-4EE6-A2BD-79650CC04149@n26.com>
	<1585009394522-0.post@n3.nabble.com>
	<SA0PR19MB42555877CA8D229BA3F405ACA4F10@SA0PR19MB4255.namprd19.prod.outlook.com>
	<3f30c24a-d5b0-8b20-b626-5a674bb9b2f1@gmail.com>
	<SA0PR19MB4255C6E91FA6414FFCF61CAAA4F10@SA0PR19MB4255.namprd19.prod.outlook.com>



On 3/24/20 11:53 AM, Kevin Brannen wrote:
> From: Rob Sargent <robjsargent@gmail.com>
>
>> Sorry if I missed it, but have we seen the size range of these json files?
> Not that I've seen, but that's an implementation detail for whoever is doing the work. As someone else pointed out, pick the value as needed, whether that's 10, 100, 1000, or whatever. But issuing 1000 lines of "\copy file" sort of commands at a time isn't a big deal by itself. OTOH, you have a good point that 1000 could be too much work for the server to handle, especially if the "-1" flag is also used. As always: test, test, test... 😊
>

My fear is this:  the community helps OP load 500M "records" in a 
reasonable timeframe then OP's organization complains postgres is slow 
once they start using it... because the transition from file system to 
rdbms was ill conceived.  Are the json files large documents or 
arbitrary content or are they small data structures of recognizable 
types. And so on





view thread (24+ messages)

Message-ID: <812bd681-7444-9f1e-aab8-768230bb6147@gmail.com>
Permalink:  ../812bd681-7444-9f1e-aab8-768230bb6147@gmail.com/
Also on:    postgresql.org/message-id/812bd681-7444-9f1e-aab8-768230bb6147@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: robjsargent@gmail.com
  Subject: Re: Loading 500m json files to database
  In-Reply-To: <812bd681-7444-9f1e-aab8-768230bb6147@gmail.com>
  References: <1584959088557-0.post@n3.nabble.com> <7B61A925-5F3D-421C-949B-77B1EE026168@1nar.com.tr> <1468923B-049B-4EE6-A2BD-79650CC04149@n26.com> <1585009394522-0.post@n3.nabble.com> <SA0PR19MB42555877CA8D229BA3F405ACA4F10@SA0PR19MB4255.namprd19.prod.outlook.com> <3f30c24a-d5b0-8b20-b626-5a674bb9b2f1@gmail.com> <SA0PR19MB4255C6E91FA6414FFCF61CAAA4F10@SA0PR19MB4255.namprd19.prod.outlook.com> <812bd681-7444-9f1e-aab8-768230bb6147@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