MongoDB报错,Sort operation used more than the maximum 33554432 bytes of RAM.Add an index
之前使用mongodb时由于数据过多导致报错
Sort operation used more than the maximum 33554432 bytes of RAM.Add an index
查的数据有1700多条就出现这个问题了。
这是内存不够的原因
**网上有两种解决办法:
1. 增加RAM
在robot的命令栏输入:
db.adminCommand({setParameter:1,internalQueryExecMaxBlockingSortBytes:335544320})
然后按ctr
原创
2021-04-30 17:21:28 ·
474 阅读 ·
3 评论