Just thinking out loud #4
Replies: 1 comment
-
|
Thank you for your message and your interest in this project. I’m glad you find the documentation helpful! This was a personal proof-of-concept project that I thought was useful enough to share. Although I’ve experimented with it in development, I haven’t used it in a production project. You’ve touched on some critical challenges, such as handling schema migrations and the performance issues associated with updating new devices that are significantly out of sync. Here are a couple of my thoughts:
I agree! These are complex problems, but I don’t think they are impossible to solve. If you’re willing to share, I’m curious to hear more about your project that is using GRDB in a local-first manner. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I really like this idea. I appreciate how well you've documented it.
I am working on an app with local-first GRDB and was weighing sync options, wanting to avoid pointless encode/decode cycles just to get the data back to SQLite on the other end. Your approach is perfect for that.
What might be a blocker for me are no migration support and the idea of getting a new device up-to-speed that's months or even years behind. I wonder about the practicality of having periodic snapshots of some kind (certainly after schema changes) to immediately bring new devices to some revision.
That sounds worryingly complex to me but maybe something clever will come to mind.
Beta Was this translation helpful? Give feedback.
All reactions