开发者

How to pool the connections of mongodb with casbah?

开发者 https://www.devze.com 2023-02-18 21:05 出处:网络
I\'m using mongodb with scala driver casbah. If I\'m not开发者_运维百科 understanding wrong, it doesn\'t provide connection pool. Is there any pool libraries for casbah, like dbcp/c3p0 for jdbc connec

I'm using mongodb with scala driver casbah. If I'm not开发者_运维百科 understanding wrong, it doesn't provide connection pool. Is there any pool libraries for casbah, like dbcp/c3p0 for jdbc connections?


Casbah wraps the MongoDB Java Driver which provides a connection pool. An Instance of MongoConnection is actually an instance of the pool, not an individual connection. The pool can be tuned with an instance of the MongoOptions class passed to a new MongoConnection.

0

精彩评论

暂无评论...
验证码 换一张
取 消