1

我在 Java 项目中使用 MongoDB,我有一个问题要问你:

如何使用 mongodb 的控制台更改连接池?

4

1 回答 1

2

我在 MongoDB Google Group 上回答了这个问题,我将在这里重新引用:

You can control how many connections there are with the [MongoOptions class][1]:

The connection pool is controlled in the driver configuration, not through the mongo shell.
于 2012-08-14T08:49:37.817 回答