Re: Best way to parse complex json string into table columns?
В списке pgsql-admin по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Best way to parse complex json string into table columns? |
| Дата | |
| Msg-id | 2620242.1702488296@sss.pgh.pa.us обсуждение |
| Ответ на | Best way to parse complex json string into table columns? (Sbob <sbob@quadratum-braccas.com>) |
| Ответы |
Re: Best way to parse complex json string into table columns?
|
| Список | pgsql-admin |
Sbob <sbob@quadratum-braccas.com> writes:
> I have a client that is using a function to parse a set of rows from a
> table with a json column into table columns in a materialized view.
> ...
> The above approach is painfully slow, is there a better performing
> method of converting json strings to table columns?
json[b]_populate_record is meant for this sort of thing.
Also, if your source data is actually json not jsonb, that's
a seriously poor choice when you are in need of better
processing speed.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера