We have a few APIs we have built to allow our Power BI system to pull in data to generate reports/dashboards that would not be possible/would be more difficult to create within Create itself. Some fo the objects the APIs allow data to be pulled from contain tens of thousands of records. We had been allowing the API call to pull all of the records but were noticing some issues. After liaising with Netcall we came to realise that the API was hitting RAM issues due to the amount of data being called at once and so have implemented a simple limiter on the API call: the incoming request has to specify a maximum and minimum record ID.
Currently there is nothing stopping the request from specifying IDs that are 10s of thousands apart and causing the issue, though we have advised our BI team not to do this. I think it would be better to hard limit the number of returned records in the API function itself and allow the BI team to specify an offset or page, similar to other APIs that return large numbers of records. Can anyone think of a way to do this with current Create functionality? The API functions are set up as Liberty Create type, rather than generic.