SQLite 3.45 Released With JSON Functions Adapted To Use JSONB

Written by Michael Larabel in Programming on 15 January 2024 at 03:05 PM EST. 6 Comments
PROGRAMMING
SQLite 3.45 was released today with the SQLITE_DIRECT_OVERFLOW_READ optimization being enabled by default that can help for apps relying on SQLite and doing a lot of reads of large BLOBs or strings deliver better read performance. There are also query planner improvements while most interesting with SQLite 3.45 is all JSON functions being rewritten to use the new JSONB format.

The JSONB-ed version of SQLite's JSON functions can deliver several times better performance than the existing JSON support within SQLite. This is a new internal-use binary representation of JSON that is stored as an SQL BLOB.

JSONB is described in the SQLite documentation as:
"SQLite allows its internal "parse tree" representation of JSON to be stored on disk, as a BLOB, in a format that we call "JSONB". By storing SQLite's internal binary representation of JSON directly in the database, applications can bypass the overhead of parsing and rendering JSON when reading and updating JSON values. The internal JSONB format is also uses slightly less disk space then text JSON.

Any SQL function parameter that accepts text JSON as an input will also accept a BLOB in the JSONB format. The function will operate the same in either case, except that it will run faster when the input is JSONB, since it does not need to run the JSON parser."

The JSONB support and other performance optimizations with SQLite 3.45 are great news with this open-source embed-friendly SQL database library being widely used by a multitude of applications from the desktop to server and embedded/mobile purposes.

SQLite logo


More details on the new JSONB support for SQLite's JSON support and other SQLite 3.45 changes can be found via the change-log on SQLite.org.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week