Hacker News new | ask | show | jobs
by masklinn 1569 days ago
> In case of PostgreSQL there is json and jsonb. For SQLite, hexdump of the database shows text representation and seems to be stored like json than jsonb. I am not aware of the full design and source code but it seems some functions parse and cache the JSON representation.

Wouldn’t a jsonb-type storage require a new storage mode for sqlite, which would be a major architectural change?

JSONB derives (at least logically and historically) from hstore, so postgres had a history of structured type stores. Not so for sqlite.

1 comments

jsonb and hstore are both just an encoding format for the data within a single field and do not affect either the architecture nor the storage model of the database.