If we are simply returning the id or a boolean, and we don't need the inserted/edited document itself, then we shouldn't be using findAndUpdate... and instead we should just update....
Shouldn't take too long and will make sure our db-bandwidth usage is as little as possible.
If we are simply returning the
id
or aboolean
, and we don't need the inserted/edited document itself, then we shouldn't be usingfindAndUpdate...
and instead we should justupdate...
.Shouldn't take too long and will make sure our db-bandwidth usage is as little as possible.