[SERVER-84169] Rewrite cluster FindAndModify in terms of FindAndModifyCommandRequest Created: 13/Dec/23  Updated: 30/Jan/24

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Mihai Andrei Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Description   

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.

 

 



 Comments   
Comment by Kyle Suarez [ 26/Dec/23 ]

Sending this to the quick wins bucket. mihai.andrei@mongodb.com, I also marked this as neweng, but let me know if you disagree.

Generated at Thu Feb 08 06:54:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.