Re: Importing a Large .ndjson file - Mailing list pgsql-general

From Tom Lane
Subject Re: Importing a Large .ndjson file
Date
Msg-id 1557194.1592505025@sss.pgh.pa.us
Whole thread Raw
In response to Re: Importing a Large .ndjson file  (Sankar P <sankar.curiosity@gmail.com>)
Responses Re: Importing a Large .ndjson file  (Sankar P <sankar.curiosity@gmail.com>)
List pgsql-general
Sankar P <sankar.curiosity@gmail.com> writes:
> I spoke too soon. While this worked fine when there were no indexes
> and finished within 10 minutes, with GIN index on the jsonb column, it
> is taking hours and still not completing.

There's the generic advice that building an index after-the-fact
is often cheaper than updating it incrementally.  For GIN indexes
specifically, see also

https://www.postgresql.org/docs/current/gin-tips.html

            regards, tom lane



pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: Importing a Large .ndjson file
Next
From: Stephen Frost
Date:
Subject: Re: Netapp SnapCenter