| From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
|---|---|
| To: | Will Hartung <willhartung(at)gmail(dot)com> |
| Cc: | Ron <ronljohnsonjr(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Loading table with indexed jsonb field is stalling |
| Date: | 2019-05-21 00:47:26 |
| Message-ID: | d5af8b49-db57-a08b-f7bc-cc77510c9e3d@aklaver.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 5/20/19 5:33 PM, Adrian Klaver wrote:
> On 5/20/19 5:22 PM, Will Hartung wrote:
>>
>>> On May 20, 2019, at 5:14 PM, Adrian Klaver
>>> <adrian(dot)klaver(at)aklaver(dot)com> wrote:
>>>
>>> Well looks like you are down to Tom's suggestion of creating a test
>>> case. Given that it seems confined to the jsonb field and
>>> corresponding index, I would think that is all that is needed for the
>>> test case. Start with some smaller subset, say 10,000 rows and work
>>> up till you start seeing an issue.
>>
>> This will take quite some work, and I wouldn’t attempt it with less
>> than 5M rows to load.
>>
>
> From this post:
> https://www.postgresql.org/message-id/CAKMEDdxE95SC76wadMzrH454HpvCV4tOdEmuZRO%3DpwArEw6YVg%40mail.gmail.com
>
>
> You started seeing longer times by the time you got to 500,000 rows and
> then it fell off by 1.1 million.
>
> Creating the data:
>
> CREATE TABLE AS gin_test SELECT traits FROM eis_entity LIMIT 1000000;
Correction:
CREATE TABLE gin_test AS SELECT traits FROM eis_entity LIMIT 1000000;
>
> Then:
>
> pg_dump -t gin_test
>
>>
>>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron | 2019-05-21 00:54:27 | Re: Loading table with indexed jsonb field is stalling |
| Previous Message | Adrian Klaver | 2019-05-21 00:33:52 | Re: Loading table with indexed jsonb field is stalling |