Search code examples
javacouchdbconnection-poolingpoolobject-pooling

Connection pool for couchdb


I have one couchdb database and I am querying it in parallel. Now, I want to create a connection pool, because I discovered a bottleneck in my design - I was using a single instance of couchd , so parallelization was failing due to that.

I searched the web for connection pool implementations, but I was not able to find a proper java connection pool implementation for couchdb - most of the frameworks support relational databases. I will be appreciated if someone can help me for that.


Solution

  • I've never used a couchdb connection pool, but you may have some luck with this:

    http://commons.apache.org/pool/

    It lets you pool any old object, including connections. It'll take a few lines of code to get it working for you though.

    Hope this helps, Nate