Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 361
DrKarl Avatar asked Feb 22 '11 16:02

DrKarl


2 Answers

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.

like image 125
Viktor Klang Avatar answered Oct 03 '22 22:10

Viktor Klang


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

like image 30
Pablo Fernandez Avatar answered Oct 03 '22 22:10

Pablo Fernandez