-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: 4.2.2
-
Component/s: Aggregation Framework
-
Query Optimization
-
(copied to CRM)
The current $sample stage only accept a number type for the size parameter, per: https://github.com/mongodb/mongo/blob/master/src/mongo/db/pipeline/document_source_sample.cpp#L102
It would be nice to allow variables/expressions in the same way that they are almost universally available within aggregation.
- related to
-
SERVER-38802 Add more granular options to $sample
- Backlog