Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
3.1.8
-
None
-
Fully Compatible
-
ALL
Description
Just tried to run
{ aggregate: "bigarray", pipeline: [ { $sample: { size: 1000 } } ], cursor: {} }
|
and got error:
Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.
|
It's not clear why aggregation sorting is involved in $sample - if that's expected it needs to be prominently documented, but if it shouldn't be using sort then this is a bug.