Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: