mongodb - 超出 $group 的記憶體限制
PHPz
PHPz 2017-05-02 09:21:28
0
1
1023

超出了 $group 的記憶體限制,但不允許外部排序。透過allowDiskUse:true 選擇加入

雷雷
PHPz
PHPz

学习是最好的投资!

全部回覆(1)
某草草

$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.

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!