Re: How jsonb updates affect GIN indexes - Mailing list pgsql-general

From Francisco Olarte
Subject Re: How jsonb updates affect GIN indexes
Date
Msg-id CA+bJJbxybXmKpxAS6uSFe9cKzAp6dd6y+E3r-azGdM+9pDG=Ng@mail.gmail.com
Whole thread Raw
In response to How jsonb updates affect GIN indexes  (Eric Mortensen <eric@appstax.com>)
List pgsql-general
CCing to list to maintain context.

On Sat, Feb 27, 2016 at 12:14 PM, Eric Mortensen <eric@appstax.com> wrote:
> Thanks Francisco, I had not considered MVCC. If that is true, it would seem
> to me that a GIN index would "always" be less efficient, as it potentially
> would have to update every key's posting tree if a tuple moves, whereas two
> btree indexes would only require modififying two trees.

If you are that worried about performance, maybe your data will be
best served by splitting those fields out of the jsonb or even
splitting the table. As always, measure, identify bottleneck.

Francisco Olarte.


pgsql-general by date:

Previous
From: Francisco Olarte
Date:
Subject: Re: How jsonb updates affect GIN indexes
Next
From: Rafal Pietrak
Date:
Subject: Re: multiple UNIQUE indices for FK