Pagination and synchronization

brettcoburnbrettcoburn Member Posts: 2
I'm trying to keep my system's data in sync with the data in a Lightspeed account, and I'm finding that handling all the edge cases that come up during synchronization is forcing me to add in a lot of unnecessary logic, mostly due to the way the LS API handles pagination. (For a sample of what can go wrong, see the article here: https://mixmax.com/blog/api-paging-built-the-right-way)

Is there a cursor we can use when paginating queries, instead of a simple offset? If not, is this something that could be considered for the future? (And does anyone have a reference for a bulletproof, fully tested algorithm that can be used for this kind of one-way sync without adding significant overhead?)

Thanks!

8 comments

Sign In or Register to comment.