Re: JSONB performance enhancement for 9.6

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: JSONB performance enhancement for 9.6
Дата
Msg-id 20151129070931.87136dd20cebcfbe5648ddf1@potentialtech.com
обсуждение исходный текст
Ответ на JSONB performance enhancement for 9.6  (Tom Smith <tomsmith1989sk@gmail.com>)
Ответы Re: JSONB performance enhancement for 9.6  (Francisco Olarte <folarte@peoplecall.com>)
Re: JSONB performance enhancement for 9.6  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sat, 28 Nov 2015 21:27:51 -0500
Tom Smith <tomsmith1989sk@gmail.com> wrote:
>
> Is there a plan for 9.6 to resolve the issue of very slow query/retrieval
> of jsonb fields
> when there are large number (maybe several thousands) of top level keys.
> Currently, if I save a large json document with top level keys of thousands
> and query/retrieve
> field values,  the whole document has to be first decompressed and load to
> memory
> before searching for the specific field key/value.

I could be off-base here, but have you tried:

ATLER TABLE $table ALTER COLUMN $json_column SET STORAGE EXTERNAL;

?

The default storage for a JSONB field is EXTENDED. Switching it to
EXTERNAL will disable compression. You'll have to insert your data over
again, since this change doesn't alter any existing data, but see
if that change improves performance.

--
Bill Moran


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

Предыдущее
От: "Steve Petrie, P.Eng."
Дата:
Сообщение: Re: using a postgres table as a multi-writer multi-updater queue
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: JSONB performance enhancement for 9.6