2017-01-19 17 views

答えて

1

これを試してみてください:

YourModel.db.db.admin().command({setParameter: 1, internalQueryExecMaxBlockingSortBytes: <limit in bytes>}, function (err,res) 
{ 
    console.log(res); 
}); 

更新:

あなたはまた、YourModelせずにそれを行うことができます。

mongoose.connection.db.admin().command({setParameter: 1, internalQueryExecMaxBlockingSortBytes: 268435456}, function (err,result) 
{ 
    console.log(result); 
}); 

接続が確立された後に必ず実行してください。

+0

ありがとうございました – Srinivas

関連する問題