2 ms·
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?
by dorian-marchal 5y ago
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?
- samwillis 5y agoYou have to handle the merge conflicts yourself, see https://www.sqlite.org/session/sqlite3changeset_apply.html 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. https://github.com/yjs/yjs https://github.com/yjs/yjs