Skip to content
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@AlexGacon
Comment options

@bchapuis
Comment options

Answer selected by AlexGacon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants