What is the difference between types of data sources combined and uncooled?

I am setting up mybatis and I have to choose the data source type POOLED or UNPOOLED. In this case, what is the difference between the types of data sources combined and uncooled?

+4
source share
1 answer

Incomplete
This DataSource implementation simply opens and closes the connection each time it is requested. Although this is slightly slower, it is a good choice for simple applications that do not require the performance of immediately available connections. Different databases also differ in this area of ​​performance, so for some it may be less important to combine, and this configuration would be ideal.


POOLED
This implementation of DataSource pools combines JDBC Connection objects to avoid the initial connection and authentication time required to create a new Connection instance. This is a popular approach for simultaneous web applications to achieve a quick response.


From: mybatis 3.3.3 User Guide

+4

Source: https://habr.com/ru/post/1626200/


All Articles