mongo数据库sort查询报错
城南君 2019-02-11 06:18:06 db.wr_record_feature.find({}).sort({create_time:-1}).limit(50)使用这个语句查询数据可以数据
报错如下:
Error: error: {
"waitedMS" : NumberLong(0),
"ok" : 0,
"errmsg" : "Executor error during find command: OperationFailed: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit.",
"code" : 96
}
请问这是什么原因?以及怎么解决,数据库已经创建索引。