joshuadevlin
11/21/2022, 10:35 PM2018-01-01 to today's date, you initially request something like 2018-01-01 to 2018-02-01, paginating through the results and then incrementing your "batch" to the next month etc. As far as I know, there isn't support for this pattern in the SDK right now, and so unless you're prepared to rewire things considerably you're pushed to batch requests through your orchestration layer.
I would like to propose an additional layer above (I think) _sync_records() that allows for this batching. I'm open to contributing this myself but I'd need some guidance on how best to implement it (assuming y'all think adding this sort of abstraction is a good idea). Also need a better name than 'batching' since that has its own meaning inside the SDK!gary_james
11/21/2022, 11:02 PMget_next_page_token (to calculate the next start date for example), get_records (to figure out how to chunk the "batches"), and ultimately get_url_params (to make the next request based on the token or whatever), right? so essentially anything where the backfill has to be iterated through in like a "do x time period per run" kinda way? <-- mostly just checking I understand this right as I've done this a few times in some not-so-nice ways so 👀joshuadevlin
11/21/2022, 11:06 PMgary_james
11/21/2022, 11:10 PMget_next_page_token may not always read as the place to look when requesting next interval 🤷edgar_ramirez_mondragon
11/22/2022, 1:27 AMedgar_ramirez_mondragon
11/22/2022, 1:29 AMvisch
11/22/2022, 1:30 AMjoshuadevlin
11/22/2022, 3:04 AMdylan_just
11/23/2022, 12:32 PMjoshuadevlin
11/23/2022, 8:22 PM