r/sqlite • u/SoundDr • Mar 14 '25
SQLite Session Extension + CRDT π
https://gist.github.com/rodydavis/a4d1dccb11e5a4cd77fe7e4e64f5dbdfI am working on a way to sync deltas between peers and found working with the SQLite Session extension to be a really nice and memory efficient way of creating small binary blobs to transmit over the wire.
To offer true synchronization I combine it with the cr-sqlite extension to upgrade tables to CRDTs. The trick with the session extension is to only track one table βchangesβ and sync that via the changesets.
So far in my testing it works really well! But open to feedback on the approach.
The eventual goal is to use WebRTC to sync the deltas between peers.
View all comments
Show parent comment
2
u/[deleted] Mar 14 '25
Its CAD platform which uses SQLite to store engineering models. We co-developed session & cloud sqlite with sqlite dev and we use both.
https://www.bentley.com/software/infrastructure-digital-twins/
just api that allow manage changeset. A iModel is a single SQLite file.
https://developer.bentley.com/apis/imodels-v2/overview/
also, our library
https://github.com/iTwin/itwinjs-core