parse-community / parse-community/parse-server
insertMany and updateMany support
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
Is there a plan to support insertMany and updateMany in Parse?
It would increase a lot the performance of batch operations, either to create new objects or to update some existing objects.
2 uses cases would be:
- to clone a certain amount of data, by creating 1000 objects at once. For now, saving those 1000 new objects is very very long, even with direct access, as the server starts one database insert op per object.
- to increment a property in 1000 objects at once (or to update a specific field with the same value). For now, the server updates each object one by one, even if the update command is strictly the same.
I have no idea how to implement that so it would be hard to try to propose a PR, but I can see the updateMany is already in the mongo adapter as it's used by the push controller to update the pushStatus of the sent pushes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Mongo adapter's existing updateMany usage in the push controller, then trace how Parse currently handles object creation and updates. Clarify the public API semantics and backend behavior for insertMany and updateMany; done should mean batch create and update operations are supported without processing every object individually.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb, nodejs
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100