I am using updateMany to update a field on the matching records .
I was surprised to learn that all(matching as well as not matching the condition ) the documents had their updatedAt time stamp updated. Questions :
a) is there a way not to update the timestamps where there is no match
b) does it make it a slower operation as all the documents are updated as opposed to a doing single update operation in a loop (especially when i know only a few documents need to updated out of Thousands/Millions )
Thanks in advance!