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

Fix to speed up pagination with backbone 1.0 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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