←back to thread

115 points graderjs | 1 comments | | HN request time: 0.206s | 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 #
zmj ◴[] No.25005083[source]
Never trust a clock.
replies(2): >>25005386 #>>25010854 #
1. andreareina ◴[] No.25005386[source]
Yeah wall clock isn't reliable. But if the server could send a global version/logical clock, then the client can say this is the latest version I've got. Which is essentially what tcp, git, etc do.