-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Labels:None
-
Query Optimization
As part of SERVER-24654, we considered adding a virtual method on the DocumentSource interface to ensure all new stages added any required privileges, but decided against it because it would involve parsing before we checked for privileges, and thus double parsing, or dramatically increasing the scope of the project.
This ticket is meant to represent some investigatory work to see how much of a performance hit it would be to parse the aggregation pipeline during PipelineCommand::checkAuthForCommand.