Description
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Features like saveAll and destroyAll uses /batch
endpoint. I believe this should send a single request to the server.
Currently the /batch
endpoint send multiple requests in the with the number of objects equal to batchSize
(default 20). I believe batchSize was added to reduce server load during the parse.com days. Having batchSize will make result in a certain amount of overhead for your client.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Removing batchSize will save resources and as a bonus will allow BeforeSaveAll
hooks and the like. There may be query improvements we can add on the server side as well for example Transactions.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I have tried setting batch size to a large number (10000) to remove the multiple requests.
What do you think? @acinader @davimacedo