[PR] Add a statements pool to DatasourceResourceLoader to fix thread safety [velocity-engine]

arkanovicz (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <[email protected]>
arkanovicz opened a new pull request, #49:
URL: https://github.com/apache/velocity-engine/pull/49

   The rule of thumb for prepared statements is that a statement can only run one query at a time. To ensure that the DatasourceResourceLoader is thread-safe, but without impacting performances, this PR introduces prepared statements pooling.
   
   It does introduce a new dependency, commons-pool2. It is rather small and without any external dependency.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.