I am getting error while doing a sort query
MongoDB Enterprise > db.residents.find().sort({“age”:1,“residentname”:1})
Error: error: {
“ok” : 0,
“errmsg” : “Executor error during find command :: caused by :: Sort operation used more than the maximum 33554432 bytes of RAM. Add an index, or specify a smaller limit.”,
“code” : 96,
“codeName” : “OperationFailed”
}
can anyone suggest , how i can check the existing limit of memory for any sort operation in mongoDb as same i do not see in mongodb configuration file and how i can change the same