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

Make partials threshold configurable #423

Merged
merged 1 commit into from
Dec 28, 2016

Conversation

nponiros
Copy link
Collaborator

Until now Dexie.Syncable sent partial changes when we had more than 1000
changes. With the partialsThreshold property this can be configured
during protocol registration.

Only positive numbers are allowed and if no threshold is given, Infinity
is used. We use Infinity so that simple server implementations of the
protocol don't have to care about partial changes.
If partialsThreshold is 0, Dexie.Syncable will send no changes but will
always set partial to true. This can be used to only get server changes
and ignore any client changes.

Closes #410

Until now Dexie.Syncable sent partial changes when we had more than 1000
changes. With the partialsThreshold property this can be configured
during protocol registration.

Only positive numbers are allowed and if no threshold is given, Infinity
is used. We use Infinity so that simple server implementations of the
protocol don't have to care about partial changes.
If partialsThreshold is 0, Dexie.Syncable will send no changes but will
always set partial to true. This can be used to only get server changes
and ignore any client changes.

Closes dexie#410
@dfahlander dfahlander merged commit 5a7a35f into dexie:master Dec 28, 2016
@dfahlander
Copy link
Collaborator

Perfect. I've updated the wiki at https://github.com/dfahlander/Dexie.js/wiki/Dexie.Syncable.ISyncProtocol

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

Successfully merging this pull request may close these issues.

None yet

2 participants