-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
As per discussion in this PR: https://github.com/mongodb/mongoid/pull/5045, contrary to expectation, "touch" operations on embedded docs when the parent doc is saved are done in a different write operation than primary .save write operation.
The code should be refactored so that there is one write operation which includes both the touch updates and the save updates.