I have an object with 50000 records in it, which I need to retrieve in chunks of 100 records per call/chunk.
I tried using OFFSET, but this way you can not call more than 2000 records.
Is there an example of how to use javascript remoting to do this? or maybe a different approach?