Re:Consider SQLite
by dorian-marchal on Wednesday December 29, 2021 @02:18PM
(#29728791)
How would we deal with conflicts (e.g. syncing back several conflicting offline clients for the same user) with something based on the Session Extension?
[ Parent
| on HN ]
You have to handle the merge conflicts yourself, see https://www.sqlite.org/session/sqlite3changeset_apply.html
So you need to be carful how you design your schema, but very possible.
One option is to use something like Yjs and a JSON column to get proper CRDTs for merging.