Sort exceeded memory limit

Hello @Scott_Weiner,

What are you sorting on? Your aggregation doesn’t show any sort operation. Also, see Aggregation $sort Stage and Memory, and it says:

The $sort stage has a limit of 100 megabytes of RAM. By default, if the stage exceeds this limit, $sort will produce an error. To allow for the handling of large datasets, set the allowDiskUse option to true to enable $sort operations to write to temporary files.