I run aggregation in a collection of about 300k + records, which requires several breaks and groups. I find an error:
'exception: Exceeded memory limit for $group, but didn\'t allow external sort. Pass allowDiskUse:true to opt in.'
I cannot figure out how to pass this parameter using mongoose.js API?
Dan steele
source share