question

WillyN avatar image
WillyN asked

Please provide a fast way to get the latest checkpoint for /changes API

Hi, As someone mentioned before in this thread: http://forums.developer.amazon.com/forums/thread.jspa?messageID=18396䟜, there is no way to get the checkpoint which represents NOW without going through the entire changelist since the beginning of time. This is extremely difficult for users with a large dataset. What I tried doing at first was fitting all the changes into one request, but some users ended up running out of memory trying to store the response (which I need to do to parse out the checkpoint). Splitting it into several requests just to get up to date just makes it slower and shouldn't be necessary. Thanks, Willy
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

exonintrendo avatar image
exonintrendo answered
Although this won't help you get the most recent checkpoint, you can get around the memory issue by setting the "maxNodes" options in the request and simply repeat the request with the new checkpoint until you receive "end = true" in the JSON ({ "end" : true }). Hope this helps.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for the feedback. I'll pass this on to the team as a feature request. Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.