Optimizar MongoDB
En el capitulo de utilidades de la base de datos se muestra como optimizar mediante repository,
Modifique la cantidad de Ram para las colecciones
Esta dado en bites 150151432 = 150MB
db.adminCommand({setParameter: 1, internalQueryExecMaxBlockingSortBytes:150151432})
Si no lo configuramos generalmente con colecciones muy grandes generalmente envía el mensaje de error.
com.mongodb.MongoQueryException: Query failed with error code 96 and error message 'Executor error during find command :: caused by :: errmsg: "Sort operation used more than the maximum 50151432 bytes of RAM. Add an index, or specify a smaller limit."' on server 127.0.0.1:27017
Cree indices en Mongodb para optimizar los consultas
db.articulo.createIndex({idarticulo:1})
Last updated
Was this helpful?