Skip to content

[Discussion] Remove batchSize #1045

Closed
@dplewis

Description

@dplewis

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.

batches

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions