2012-08-13 77 views
1

我在一个Java项目中使用MongoDB的,我对你有这样的疑问:更改连接池与控制台

我怎么能更改与控制台MongoDB的连接池?

+0

什么改变连接池在控制台中的用例?你为什么要这样? – 2012-08-13 16:10:00

+0

“连接池”,你的意思是客户端Java连接池吗?通过“控制台”,你的意思是mongo shell吗? – 2012-08-13 18:24:13

+0

是的,它是使用mongo shell的客户端Java连接池 – 2012-08-14 08:14:23

回答

2

我回答了这个对MongoDB的谷歌集团,我会重新报价的位置:

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.