Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is Castor JDO using any connection pooling mechanism to improve the overall performance?

0
10 Posted

Is Castor JDO using any connection pooling mechanism to improve the overall performance?

0

No, Castor JDO doesn’t have any built-in JDBC resource pooling. However the framework can transparently use any resource pooling facilities provided through DataSource implementation or -even better- through JDNI. In fact we even recommend people to use some Connection and PreparedStatement pool with Castor as this can increase Castor’s performance 3-5 fold. For example the following set of statements: db.begin(); db.execute(…) db.commit() will be executed in much less time with the resource pooling because it will avoid creating a new physical JDBC connection at every execution. With Oracle, instead of specifying the usual JDBC driver you can use a DataSource that specifically provides some Connection caching/pooling. Thus if your jdo config file looks like : ..

0

No, Castor JDO doesn’t have any built-in JDBC resource pooling. However the framework can transparently use any resource pooling facilities provided through DataSource implementation of -even better- through JDNI. In fact we even recommend people to use some Connection and PreparedStatement pool with Castor as this can increase Castor’s performance 3-5 fold. For example the following set of statements : db.begin(); db.execute(…) db.commit() will be executed in much less time with the resource pooling because it will avoid creating a new physical JDBC connection at every execution. With Oracle, instead of specifying the usual JDBC driver you can use a DataSource that specifically provides some Connection caching/pooling. Thus if your jdo config file looks like : .

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.