IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace jsonb by text

kderme opened this issue · comments

jsonb Postres type provides the ability to query keys of the json. However it's slower to insert. We could use text by default and document ways for users to migrate to json if they do such queries. A command like

alter table tx_metadata alter column json type jsonb USING json::jsonb;

could be used