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

Avoid redownloading changes on Sync #144

Closed
Natim opened this issue Sep 4, 2015 · 3 comments
Closed

Avoid redownloading changes on Sync #144

Natim opened this issue Sep 4, 2015 · 3 comments
Assignees

Comments

@Natim
Copy link
Member

Natim commented Sep 4, 2015

Refs: mozilla-services/readinglist#68

Basically, when doing a Batch before syncing, in the next update you will get all the records you've just changed that are already up-to-date with your local version. (When using If-Match headers to handle races)

We've just landed something, that let you exclude a list of values when syncing: mozilla-services/cliquet#432

This is something we may want to use in kinto.js sync to optimize the second fetch.

@n1k0
Copy link
Contributor

n1k0 commented Feb 3, 2016

That would be basically adding an exclude query string parameter to the second fetch for changes request with the already processed record ids, right?

@leplatrem
Copy link
Contributor

Using ?exclude_id=id1,id2,id3 it should work.

What is the limit of the URL length by the way ?

@leplatrem
Copy link
Contributor

What is the limit of the URL length by the way ?

Staying under 2000 chars looks like the most reasonable approach (source)

We can fit around 50 uuids in the exclude querystring :)

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

No branches or pull requests

3 participants