←back to thread

115 points graderjs | 2 comments | | HN request time: 0.435s | source
Show context
dreamer7 ◴[] No.25004897[source]
Slightly off topic - can we use git-diff-able databases for faster syncing of clients with servers?

Or is there no practical difference?

We can return just the latest updated documents by maintaining a lastUpdated timestamp on client and server docs. But this would be at a document level. So, only the fields that have changed would be sent to the client.

replies(3): >>25004919 #>>25005083 #>>25005831 #
1. moonchild ◴[] No.25005831[source]
An mutch easier solution that gets you 90% of the way is to just use a binary patcher (like bsdiff) with whatever database format you're already using.
replies(1): >>25006433 #
2. Scaevolus ◴[] No.25006433[source]
bsdiff doesn't scale to gigabytes-- vcdiff or rsync will work better