tehhowch / apps-script

A collection of files used by Google Apps Script to develop and serve data via Google Sheets
0 stars 0 forks source link

Update lastRan parameter when adding or deleting members to the database #2

Closed tehhowch closed 7 years ago

tehhowch commented 7 years ago

Right now only numMembers is updated with the differential.

-> change the property read from just numMembers to all properties -> get the current lastRan member from getUserBatch(lastRan,1) -> perform all additions/deletions possible while tracking the total differential -> getUserBatch(lastRan-diff,diff*2) ->search the new table for the old pointer's value and determine the new pointer ->update both lastRan and numMembers.

tehhowch commented 7 years ago

Should be fine except for the corner case mentioned in bcf8ed1