Re: Computed index on transformation of jsonb key set

From: Steven Schlansker <stevenschlansker(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Computed index on transformation of jsonb key set
Date: 2019-04-26 21:53:15
Message-ID: 0E4CECBC-F22A-4EE2-9E71-5ABA9EB89DFC@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Apr 26, 2019, at 2:33 PM, Rob Sargent <robjsargent(at)gmail(dot)com> wrote:
>
>
> On 4/26/19 3:25 PM, Steven Schlansker wrote:
>>
>>
>> How can I efficiently implement the feature I've described? It seems difficult to use computed indexing with GIN.
>>
> Storing the map in a child table (parentId, UUID, int) is out of the question?

Yes, thanks Rob and David, that will be my approach if I can't figure out anything better.

I was hoping to not have to denormalize the data given that Postgres generally has great support for computing indexes,
both to avoid storage costs and eliminate the need to maintain triggers or application code to handle it.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2019-04-26 21:58:18 Re: Computed index on transformation of jsonb key set
Previous Message Rob Sargent 2019-04-26 21:33:41 Re: Computed index on transformation of jsonb key set