Replies: 1 comment 2 replies
-
hey @kg, Litestream doesn't have a way to selectively replicate data unfortunately. It copies out whole pages and if you tried skipping pages then SQLite would probably see the database as corrupt (at least through a
Are you talking about the session extension? I haven't used it personally. What are the performance characteristics that seem questionable? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way for me to use litestream to replicate subsets of my data to untrusted clients? The model I'm considering here is to slice the parts of my tables that relate to the user out of the server's database and ship them over so the client can update its local copy of the data (also a SQLite db). I've looked at some of the SQLite built-in options for generating and applying SQL diffs, but the performance characteristics seem questionable. It seems like if I could tap into the journaling/replication mechanisms litestream already has to generate per-user logs or something like that to ship over the wire to clients, it would solve my problem perfectly. If there's some way I could cobble that together it would be great to know (are the streams/logs litestream uses in a documented format I could just parse myself?)
Beta Was this translation helpful? Give feedback.
All reactions