parse-server
parse-server copied to clipboard
Add support for MongoDB bulk operations
New Feature / Enhancement Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
Current Limitation
MongoDB offers a performance-optimized way for bulk operations, see BulkOperationBase. Parse Server doesn't seem to take advantage of that.
Feature / Enhancement Description
Add support for bulk operations, most importantly write (insert / update) operations. Maybe the existing /batch endpoint can take advantage of that API, or a new API needs to be introduced.
Thanks for opening this issue!
- 🎉 We are excited about your ideas for improvement!
hey @mtrezza so we should replace queries where bulk insert is supported by mongodb?
I'm unsure how much can be replaced (optimized) and how much needs to be introduced as either a new API or as an option to use bulk operations in an existing API (like the batch API). I think that depends largely on whether with bulk operations the return value is different from existing operations. If it's different, then it may not be possible to replace it since Parse Server and the client expect a certain return value.