Closed Bjwebb closed 3 years ago
Could you map out what the parameters to this might be?
What I'm proposing is actually a hard limit to the limit parameter. ie. if the hard limit is 1000 then limit=2000
would only return 1000 results. If you wanted to return more activities than the hard limit, you would need to use stream=True
, or make multiple requests using pagination (offset=2
etc.).
Ok, I understand. Agreed. Does it have to be as high as that? Doesn't everyone using this have the tech capacity to make multiple requests?
Yes, but it's a tradeoff. Provided the memory usage is not too high, it's more efficient to make fewer larger requests, for both the datastore and the client. Considering this, 1000 looks like a good limit.
I created this issue whilst looking into excessive memory usage. It seems that in practice the actual culprit tends to be the about dataset page https://github.com/IATI/iati-datastore/issues/196
OK. I leave it in your trusty hands
Otherwise users can use arbitrary amounts of RAM on the server.