Change a runtime parameter
MongoDBParametersCommand
db.adminCommand({ setParameter: 1, cursorTimeoutMillis: 600000 })What it does
Changes a runtime parameter without restarting the server.
When to use it
When you want to adjust a server behavior temporarily.
Caution
The change is not persistent; on restart it reverts to the value in the config file. A wrong value can degrade performance.