$group有記憶體限制你的資料量超過了限製而且沒有指定允許使用額外的磁碟進行操作於是就報錯了 The $group stage has a limit of 100 megabytes of RAM. By default, if the stage exceeds this limit , $group will produce an error. However, to allow for the handling of large datasets, set the allowDiskUse option to true to enable $group operations to write to temporary files.See db.collection.aggregate() method details.
$group有記憶體限制你的資料量超過了限製而且沒有指定允許使用額外的磁碟進行操作於是就報錯了
The $group stage has a limit of 100 megabytes of RAM. By default, if the stage exceeds this limit , $group will produce an error. However, to allow for the handling of large datasets, set the allowDiskUse option to true to enable $group operations to write to temporary files.See db.collection.aggregate() method details.