JSONB has landed
sqlite.org
JSONB has landed
1–10 of 210 posts
Re: JSONB has landed
#2Re: JSONB has landed
#3Re: JSONB has landed
#4It feels like it would be better to use a known binary encoding. I thought the MessagePack data model corresponded pretty much exactly to JSON ?
Edit: someone else mentioned BSON - https://bsonspec.org/
To be honest the wins (in this draft) don't seem that compelling
The advantage of JSONB over ordinary text RFC 8259 JSON is that JSONB is both slightly smaller (by between 5% and 10% in most cases) and can be processed in less than half the number of CPU cycles.
JSON has been optimized to death; it seems like you could get the 2x gain and avoid a new format with normal optimization, or perhaps compile-time options for SIMD JSON techniques
---
And this seems likely to confuse:
The "JSONB" name is inspired by PostgreSQL, but the on-disk format for SQLite's JSONB is not the same as PostgreSQL's. The two formats have the same name, but they have wildly different internal representations and are not in any way binary compatible.
---
Any time data is serialized, SOMEBODY is going to read it. With something as popular as sqlite, that's true 10x over.
So to me, this seems suboptimal on 2 fronts.
Re: JSONB has landed
#5Re: JSONB has landed
#6Re: JSONB has landed
#7Re: JSONB has landed
#8And it just keeps getting better and better and better, and faster and faster and faster.
I don't know how these guys manage to succeed where almost all other projects fail, but I hope they keep going.
Re: JSONB has landed
#9Next step is to go full Ouroboros and have embedded SQLite DBs as records.
Re: JSONB has landed
#10Next step is to go full Ouroboros and have embedded SQLite DBs as records.
That was the previous step. Binary BLOBs have been supported in SQLite for some time.