Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5392

Embedded doc touch updates should be done concurrently with other persistence operations

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: