Repository navigation
4.0.0
#93
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
CogDB 4.0.0
CogDB 4.0 is a ground-up rebuild of the storage engine, focused on speed, crash safety, and predictable on-disk behavior.
Spindle storage format (On-disk format change - BREAKING)
The 3.x marshall-based format is replaced by Spindle, a compact binary, length-addressable record format:
Strict value types (breaking)
4.0 defines the value domain explicitly: str, int (int64), float, bool, bytes, and numeric lists (persisted as float64 arrays — int elements widen to float, matching embedding semantics). Anything else (dict, None, tuples, mixed lists, ints beyond int64) now raises ValueError at write time instead of being silently stringified. What you read back is always exactly what was stored.
Migrating from 3.x
3.x databases must be migrated once:
Migration is built to be safe to run on real data:
This discussion was created from the release 4.0.0.
All reactions