BookingSync / synced

Keep your BookingSync Application synced with BookingSync
MIT License
3 stars 2 forks source link

Use pagination with block #68

Closed StoneFrog closed 7 years ago

StoneFrog commented 7 years ago

Instead of fetching all records at once, allow to persist them in batches. Reduces memory usage, but increases total sync time (in theory). Changes in bookingsync-api are required, since right now it doesn't handle pagination with block, if only one page is returned.

May require some additional changes in other apps if they override synchronize method (array of all fetched records can't be returned anymore, so for example calling super and doing some additional operations on fetched records won't work anymore) auto_paginate strategy is backwards compatible, so should work without any changes.