Re: How jsonb updates affect GIN indexes

Поиск
Список
Период
Сортировка
От Francisco Olarte
Тема Re: How jsonb updates affect GIN indexes
Дата
Msg-id CA+bJJbxybXmKpxAS6uSFe9cKzAp6dd6y+E3r-azGdM+9pDG=Ng@mail.gmail.com
обсуждение исходный текст
Ответ на How jsonb updates affect GIN indexes  (Eric Mortensen <eric@appstax.com>)
Список 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 по дате отправления:

Предыдущее
От: Francisco Olarte
Дата:
Сообщение: Re: How jsonb updates affect GIN indexes
Следующее
От: Rafal Pietrak
Дата:
Сообщение: Re: multiple UNIQUE indices for FK