CouchDB的连接池 [英] Connection pool for couchdb

查看:101
本文介绍了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.

我在网络上搜索了连接池的实现,但是我找不到适用于Couchdb的Java连接池的实现-大多数框架都支持关系数据库.如果有人可以帮助我,我将不胜感激.

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.

推荐答案

我从来没有使用过沙发床连接池,但是您可能对此有些运气:

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

这篇关于CouchDB的连接池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆