We are having this failure when sort using createdAt on MongoDB
“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.”,
We tried to add an index to createdAt by post to /schemas/${className}
indexes: {
_createdAt_: {
createdAt: 1
},
_updatedAt_: {
updatedAt: 1
}
}
The post worked. Looking at the MongoDB it seems the indexes are created but on MongoDB it is _created_at
and _updated_at
. So the query above still fail
We tried to post the following but the post fails
indexes: {
_created_at_: {
_created_at: 1
},
_updated_at_: {
_updated_at: 1
}
}
Thank you in advance!