olivier_caron
05/09/2023, 4:04 PMnext
property pointing to the next page cursor. Since there's a lot of records returned from this endpoint, I'm trying to limit the amount of requests needed to read all records updated since the last run. The endpoint does not have an after
param that I can leverage, but I know from the documentation that it sorts records in descending order of updatedAt
value. So my solution is to keep requesting the next page until I've reached a record where the updatedAt
timestamp is smaller than the starting replication timestamp. The issue I'm having is the context is not passed to the paginator class anywhere. So I can't do that comparison and exit the pagination loop. What would be the best way to achieve this?visch
05/09/2023, 4:31 PMedgar_ramirez_mondragon
05/09/2023, 5:05 PMolivier_caron
05/09/2023, 11:07 PM