lightblue-platform / lightblue-mongo

MongoDB backend for lightblue
GNU General Public License v3.0
3 stars 14 forks source link

maxResultSetSize expressed in bytes #372

Open paterczm opened 7 years ago

paterczm commented 7 years ago

We have maxResultSetSize setting currently which defines maximum number of documents which can be returned in a single call. If the documents are large, it can still lead to OutOfMemory errors in the crud nodeset.

I would rename current maxResultSetSize to maxResultSetCount and introduce maxResultSetSizeB (in bytes) to put a cap on the response size and protect crud resources from exhaustion.