Re: JSONB performance enhancement for 9.6 - Mailing list pgsql-general

From Bill Moran
Subject Re: JSONB performance enhancement for 9.6
Date
Msg-id 20160120073257.d9af9e0315adf2ca37520589@potentialtech.com
Whole thread Raw
In response to Re: JSONB performance enhancement for 9.6  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: JSONB performance enhancement for 9.6
Re: JSONB performance enhancement for 9.6
List pgsql-general
On Tue, 19 Jan 2016 23:53:19 -0300
Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

> Bill Moran wrote:
>
> > As far as a current solution: my solution would be to decompose the
> > JSON into an optimized table. I.e.:
> >
> > CREATE TABLE store1 (
> >  id SERIAL PRIMARY KEY,
> >  data JSONB
> > );
> >
> > CREATE TABLE store2 (
> >  id INT NOT NULL REFERENCES store1(id),
> >  top_level_key VARCHAR(1024),
> >  data JSONB,
> >  PRIMARY KEY(top_level_key, id)
> > );
>
> Isn't this what ToroDB already does?
> https://www.8kdata.com/torodb/

Looks like. I wasn't aware of ToroDB, thanks for the link.

--
Bill Moran


pgsql-general by date:

Previous
From: Sachin Srivastava
Date:
Subject: Syntax error for Function
Next
From: Thom Brown
Date:
Subject: Re: Syntax error for Function