|
Hello, Is it possible to configure the different parameters of the DB pool for client connections? Like the min/max number of connections in the pool? Regards |
Replies: 1 comment 2 replies
|
Yes, in the configuration file, the object representing a database can either be a string containing a JDBC URL or a Database object [1] representing a Hikari datasource [2]. In the latter case, the object can include all the properties defined in the Database class, which include amon other the minimumIdle and maximumPoolSize properties you are looking for. In the config file the json object may look as follow: {
"jdbcUrl": "jdbc:postgresql://localhost:5432/mydb",
"username": "user",
"password": "password",
"minimumIdle": 5,
"maximumPoolSize": 20
}[1] https://github.com/apache/incubator-baremaps/blob/main/baremaps-postgres/src/main/java/org/apache/baremaps/postgres/utils/Database.java |
Yes, in the configuration file, the object representing a database can either be a string containing a JDBC URL or a Database object [1] representing a Hikari datasource [2]. In the latter case, the object can include all the properties defined in the Database class, which include amon other the minimumIdle and maximumPoolSize properties you are looking for.
In the config file the json object may look as follow:
{ "jdbcUrl": "jdbc:postgresql://localhost:5432/mydb", "username": "user", "password": "password", "minimumIdle": 5, "maximumPoolSize": 20 }[1] https://github.com/apache/incubator-baremaps/blob/main/baremaps-postgres/src/main/java/org/apache/baremaps/postgres/utils/Datab…