-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Optimization
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
-
None
At the time of writing, for an individual UpdateOpEntry, it is an error to specify both 'multi: true' and a sort. This check is enforced pretty close to runtime (i.e. before we execute the update) on both mongod and mongos. Ideally, this would be checked at parse time.
As such, this ticket tracks the work to move this check to parse time. Note that UpdateOpEntry is parsed using IDL, so this is effectively asking whether it is possible to add a custom parsing rule or a mutual exclusion rule to the existing IDL.