简体   繁体   中英

Scala connection pool library?

I'm trying to use Squeryl in a new Scala project. This is my first project in Scala, so I'm looking for a good Scala library to handle connection pooling. Of course I might as well use a Java library. What would be a best fit for SQueryl? Amongst java libraries I'm considering DBCP, C3P0, Proxool and BoneCP, being BoneCP a serious candidate looking at their benchmarks.

I've used C3P0 in production for many years, always been rock solid for me. Watch out with your DB driver tho, they can be very flaky.

I wrote a blog post about db connection pooling with slick you may find useful:

http://fernandezpablo85.github.io/2013/04/07/slick_connection_pooling.html

我知道这是一个旧帖子,但为了保持最新的答案,如果你需要一个连接池并且你正在编写一个在JVM上运行的应用程序,我建议使用HikariCP

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM