Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Fix to speed up pagination with backbone 1.0#7

Open
sugampandey wants to merge 1 commit intoteleological:masterfrom
sugampandey:fix_backbone_1.0
Open

Fix to speed up pagination with backbone 1.0#7
sugampandey wants to merge 1 commit intoteleological:masterfrom
sugampandey:fix_backbone_1.0

Conversation

@sugampandey
Copy link

Backbone 1.0 has an optimized set implementation. Without passing in reset option, fetchWithPagination will invoke fetch in backbone 1.0 forcing it to do set on the collection instead of reset. Invoking set for every pagination will take extremely long, due the nature of set optimization logic. Hence pass in reset to force the call to reset

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 this pull request may close these issues.

2 participants