I have around 400 fields in my collection (including both at top level as well as embedded), following is the nature of write queries:
- All write queries always update single document and an average of 60 fields in that document.
- There are indexed fields in collection but no write query updates an indexed field.
- Volume of write queries is very large.
I can use either .save()
or .update()
to update the document. In update I only pass the fields that need to be updated, whereas in save I pass the entire document. I want to know if using update in this case will give me better performance than save (or vice versa) or does it not make any difference at the database level and both perform equally well?