SomeCollection.find({}, { fields: { exerciseId: 1} })
After running a time test, it looks like this query takes longer than just find()
without any arguments. Are there any benefits of limiting the field? I guess, it will use less local memory but when is that worth it?
In my experience the benefits of using
fields
on the client are limited. But you should absolutely use it when defining your publications on the server for two reasons: