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

Rewrite cluster FindAndModify in terms of FindAndModifyCommandRequest

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • QE 2024-11-25, QE 2024-12-09, QE 2024-12-23, QE 2025-03-03, QE 2025-03-17, QE 2025-03-31, QE 2025-04-14
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, cluster FindAndModifyCmd::run() is implemented in terms of a BSONObj command object. This ticket tracks the work to rewrite the 'run' path in terms of a 'FindAndModifyCommandRequest'. 

      Doing this has several advantages:

      • It may be a perf win (operating over a C++ object will be faster than a BSONObj)
      • It will make modifying the command object more simple (see SERVER-82042 for an example of this where we have to serialize the command's let arguments.

       

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            mihai.andrei@mongodb.com Mihai Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: