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?
Asked
Active
Viewed 2,532 times
1 Answers
17
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.

Brendan W. McAdams
- 9,379
- 3
- 41
- 31
-
3A reference would be nice. – Bruno Bronosky Oct 27 '16 at 04:08