Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bulk sync #76

Open
NfNitLoop opened this issue Jan 9, 2022 · 0 comments
Open

Implement bulk sync #76

NfNitLoop opened this issue Jan 9, 2022 · 0 comments

Comments

@NfNitLoop
Copy link
Member

Currently, the sync implementation is based on syncing individual items. It retrieves an item (ID) list from two servers, compares them, and copies across any missing items.

However, the time to do that to remote servers is entirely dominated by round-trip latency. Even with a parallelism of 4, we can only reduce that O(n) to ... a slightly smaller O(n).

Instead, we could add a way to get items IDs and their contents, streamed.

The client can just sift through these and discard the ones it doesn't want, or close the stream when it gets to a section of items it already has.

Optionally: Add an option to stop the stream (server-side) at a particular timestamp or signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant