hstore or jsonb ?

Поиск
Список
Период
Сортировка
От Bzzzz
Тема hstore or jsonb ?
Дата
Msg-id 20221114155057.48406b86@msi.defcon1.lan
обсуждение исходный текст
Ответы Re: hstore or jsonb ?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-novice
Hi folks,


I'd like to store specs, as they vary a lot from one item to another,
hstore or jsonb look like the best solution.

Specs can have 2 levels at most.
ie: "color": ["white", "black", "blue"]).

The indexation is mandatory for fulltext accurate researches in
(almost) natural language.

So, as the processing is almost the same (maps I/O in Erlang), which one
would be the best for my needs, hstore or jsonb ?

Also, from what I read, the both of them can be easily indexed, but
which index is the best, GIN or RUM ?

And furthermore, which index option (XXX_ops), if any, would be the best
for the chosen one ?

Jean-Yves



В списке pgsql-novice по дате отправления:

Предыдущее
От: Ankit Kumar Pandey
Дата:
Сообщение: Distinct tightly coupled with Agg
Следующее
От: Laurenz Albe
Дата:
Сообщение: Re: hstore or jsonb ?