Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-91191

Re-use CollectionAcquisition in write_ops_exec::performUpdates

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution

      Currently we create a new CollectionAcquisition for each update here:
      https://github.com/mongodb/mongo/blob/14490ae6797f5d1adb7424167d9a0d2168dd131d/src/mongo/db/ops/write_ops_exec.cpp#L1350

      When in theory we can re-use a single one for all (or at least a sub-batch of) updates in a single performUpdates call.
      https://github.com/mongodb/mongo/blob/14490ae6797f5d1adb7424167d9a0d2168dd131d/src/mongo/db/ops/write_ops_exec.cpp#L1580

      This may lead to significant performance improvements for operations like $merge.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ivan.fefer@mongodb.com Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: