Re: Connection Pooling with SQL2O

1,079 views
Skip to first unread message

Lars Aaberg

unread,
Apr 26, 2013, 4:14:58 AM4/26/13
to sq...@googlegroups.com
Hi,

I have used Apache Commons DBCP to enable connection pooling for multiple projects. That has worked great for me.

There is an example on how to create a pooling data source here

When you have your datasource, you can create an instance of Sql2o that uses the datasource like this:
Sql2o sql2o = new Sql2o(myPoolingDataSource);

Hope it helps :)

Regards
Lars Aaberg


On Fri, Apr 26, 2013 at 7:01 AM, Y Ramesh Rao <yrame...@gmail.com> wrote:
How can I create a connection pool along with sql2o ?

--
You received this message because you are subscribed to the Google Groups "sql2o" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sql2o+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dmitry Alexandrov

unread,
Apr 12, 2014, 4:45:07 PM4/12/14
to sq...@googlegroups.com
ApacheCommonsDBCP has awfull perfomance
try Hikary https://github.com/brettwooldridge/HikariCP

пятница, 26 апреля 2013 г., 12:14:58 UTC+4 пользователь Lars Aaberg написал:
Reply all
Reply to author
Forward
0 new messages