Skip to content

Saving 3000 objects in cloud code with saveAll takes more than 10 seconds #5471

Closed
@SebC99

Description

@SebC99

Issue Description

For demo purposes, we need to clone 3000 objects and save them each time a demo session is started.
We use a cloudFunction to do this among other this and the saveAll operation of the newly cloned 3000 objects takes more than 10 seconds, without any impact of the batchSize parameter.

Steps to reproduce

1- query for 3000 objects
2- clone them
3- saveAll them

Expected Results

It should send a single (or a few batch) operation to the DB

Actual Outcome

It seems instead that the parse-server receives the requests in batch (from himself) but send them one by one to the DB, which then is very slow

Environment Setup

  • Server

    • parse-server version: 3.1.3
    • Localhost or remote server? AWS ELB
  • Database

    • MongoDB version: 3.6
    • Localhost or remote server? MongoAtlas

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions