【发布时间】:2020-07-10 22:29:29
【问题描述】:
我目前正在使用以下代码连接到 mongodb atlas
exports.connectToMongoose = async() =>{
try{
const result = await mongoose.connect(process.env.mongodbURL,{
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex:true,
useFindAndModify:false
})
}
const connectionResult = await mongooseConnection.connectToMongoose();
虽然我是唯一一个登录的用户。我可以看到 mongodb atlas 正在使用 500 个可用连接中的 25 个连接。为什么每个客户端使用25个连接,这是否意味着mongodb图集只能处理20个并发客户端
【问题讨论】:
标签: mongodb connection mongodb-atlas