I don’t want to have to pull down all events from now till forever every time and then limit it to the ones I want to do pagination. I’d rather only pull down the ones needed for that request and if they click for “more”, I’ll pull down the next batch. Is this possible?
It sounds like you’re wanting to use an offset, which currently isn’t supported by the API. But we suggest some workarounds in the “Query Limits” section of the documentat: https://eventespresso.com/wiki/api-addon/#Query_Limits. This is because we’re needing to do a bunch of processing on the data after retrieiving it from the database, which has made it difficult to do offsets efficiently.
The main workaround being to use limit and a condition on the ID (because results are always ordered by their ID at the moment). Eg, to accomplish your psuedo code:
This reply was modified 10 years, 8 months ago by Michael Nelson.
Viewing 0 reply threads
The support post ‘Is there a way to do a JSON query with pagination?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.