時間:2024-02-14 10:20作者:下載吧人氣:17
對集合執行一個大排序操作(如聚合),出現以下錯誤:(測試版本:MongoDB 3.0.6)
> db.bigdata.aggregate(
{$group : {_id : “$range”, total : { $sum : 1 }}},
{$sort : {total : -1}}
);
#…
aggregate failed
at Error (<anonymous>)
at doassert (src/mongo/shell/assert.js:11:14)
#…
Error: command failed: {
“errmsg” : “exception: Sort exceeded memory limit of 104857600 bytes,
but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.”,
“code” : 16819,
“ok” : 0
}
網友評論