Details
-
Improvement
-
Resolution: Unresolved
-
Minor - P4
-
None
-
4.2.2
-
Query Optimization
-
(copied to CRM)
Description
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.
Attachments
Issue Links
- related to
-
SERVER-38802 Add more granular options to $sample
-
- Backlog
-