Re: [PR] Add a statements pool to DatasourceResourceLoader t o fix thread safety [velocity-engine]

arkanovicz (via GitHub) <[email protected]>
Newsgroups gmane.comp.jakarta.velocity.devel
Message-ID <PR_kwDOAN72MM55V4kw-a725a446-d42d-4eda-a835-36a6883fcc70@gitbox.apache.org>
arkanovicz commented on PR #49:
URL: https://github.com/apache/velocity-engine/pull/49#issuecomment-2311182964

   I don't see how. Statements, prepared or not, do belong to a specific connection. Hence, it makes sense for some applicative module like our DatasourceResourceLoader to have a single connection (with or without a connection pool) to be able to reuse prepared statements, which is not negligible in general.


-- 
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.