I am trying to make a GET call to the Magento 2 REST API to get all the sales orders. What is the recommended page size I should be using? Is there any upper limit on the page size?
Page size is not limited by Magento. However, at some Page sizes your Magento instance will start running out of memory and will not be able to process the request. The limit obviously depends on your hardware.
There are two options:
- Implement proper pagination on your application with configurable
- Try "Infinite scroll". This approach may not work
perfectly on instances with frequently created orders, because
Magento REST API does not support cursor-based pagination (which is designed for such scenarios)