Re: Importing a Large .ndjson file

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Importing a Large .ndjson file
Дата
Msg-id 1557194.1592505025@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Importing a Large .ndjson file  (Sankar P <sankar.curiosity@gmail.com>)
Ответы Re: Importing a Large .ndjson file  (Sankar P <sankar.curiosity@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Michael Lewis
Дата:
Сообщение: Re: Importing a Large .ndjson file
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Netapp SnapCenter