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

Asymmetric Sync #917

Closed
sync-by-unito bot opened this issue Sep 22, 2022 · 7 comments · Fixed by #1400
Closed

Asymmetric Sync #917

sync-by-unito bot opened this issue Sep 22, 2022 · 7 comments · Fixed by #1400
Assignees

Comments

@sync-by-unito
Copy link

sync-by-unito bot commented Sep 22, 2022

No description provided.

@in-jorgellose
Copy link

Is it still inprogress?

@nielsenko
Copy link
Contributor

We have not begun working on it yet. Is this something you are missing?

@in-jorgellose
Copy link

Yes, we have a collection that's growing quite fast (it already has 90K docs), and we don't need that information on any device. Is there a way to prevent them from downloading it while this feature is not implemented? Like, for instance, setting the query in the sub to 1=2 so it never matches?

@nirinchev
Copy link
Member

@in-jorgellose can you file a support ticket or ping your account executive with some info about your timelines (e.g. public testing/go-live dates) and they'll be able to either bump the priority of the feature or suggest workarounds.

@nielsenko
Copy link
Contributor

@in-jorgellose Your suggested workaround will work.

You need a subscription, but if you make one that will never match anything, then any object you write will be transferred to the server, which will notice that the object is outside of you subscription cover and send a compensating write (here a delete) to remove it from the client.

This is obviously not the most efficient way, and proper support for asymmetric sync is much preferable (not to mention cheaper), but it will help you avoid the build up of objects on the client in the short term.

To be honest, asymmetric sync It is not our top priority currently, but as @nirinchev suggest there are ways to influence those 😉

@nielsenko
Copy link
Contributor

@in-jorgellose We now have proper support as of v1.5.0

@in-jorgellose
Copy link

Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants