Skip to content

FOLSPRINGS-217 Implement connection pool settings#292

Open
pfilippov-epam wants to merge 4 commits intomasterfrom
FOLIO-4381
Open

FOLSPRINGS-217 Implement connection pool settings#292
pfilippov-epam wants to merge 4 commits intomasterfrom
FOLIO-4381

Conversation

@pfilippov-epam
Copy link
Collaborator

@pfilippov-epam pfilippov-epam commented Dec 12, 2025

Purpose

Implement database configuration settings similar to https://github.com/folio-org/raml-module-builder?tab=readme-ov-file#environment-variables

Jira issues:

Approach

This is a draft PR suggesting the approach where the following configuration properties will update the HikariConfig pool settings:

Env Variable Default Value
DB_QUERYTIMEOUT -
DB_CHARSET UTF-8
DB_MAXPOOLSIZE 4
DB_MAXSHAREDPOOLSIZE -
DB_CONNECTIONRELEASEDELAY 60000
DB_MINPOOLSIZE 0
DB_MAX_LIFETIME 1800000

TODOS and Open Questions

  • Update NEWS.md.
  • Use GitHub checklists. When solved, check the box and explain the answer.

Learning

Describe the research stage. Add links to blog posts, patterns, libraries or addons used to solve this problem.

@Bean
@Qualifier("dataSourceSchemaAdvisorBeanPostProcessor")
public static BeanPostProcessor dataSourceSchemaAdvisorBeanPostProcessor(
@Autowired FolioModuleMetadata moduleMetadata,

Check notice

Code scanning / SonarCloud

Injecting data into static fields is not supported by Spring

<!--SONAR_ISSUE_KEY:AZsTRYHucj71CozvLp6k-->Remove this injection annotation targeting the parameter. <p>See more on <a href="https://sonarcloud.io/project/issues?id=org.folio%3Afolio-spring-support&issues=AZsTRYHucj71CozvLp6k&open=AZsTRYHucj71CozvLp6k&branch=FOLIO-4381">SonarQube Cloud</a></p>
@sonarqubecloud
Copy link

@Bean
@Qualifier("dataSourceSchemaAdvisorBeanPostProcessor")
public static BeanPostProcessor dataSourceSchemaAdvisorBeanPostProcessor(
@Autowired FolioModuleMetadata moduleMetadata,

Check notice

Code scanning / SonarCloud

Injecting data into static fields is not supported by Spring

<!--SONAR_ISSUE_KEY:AZsTT_uGUApUWBXN0mEi-->Remove this injection annotation targeting the parameter. <p>See more on <a href="https://sonarcloud.io/project/issues?id=org.folio%3Afolio-spring-support&issues=AZsTT_uGUApUWBXN0mEi&open=AZsTT_uGUApUWBXN0mEi&pullRequest=292">SonarQube Cloud</a></p>
Copy link
Collaborator

@psmagin psmagin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be good to have it described somewhere in README.
What will happen if module defines this settings in module's application properties, what will have higher priority this ones or module's ones. Would be nice to describe it also in doc

@pfilippov-epam pfilippov-epam changed the title FOLIO-4381 Implement connection pool settings FOLSPRINGS-217 Implement connection pool settings Feb 12, 2026
@psmagin psmagin self-requested a review February 16, 2026 08:57
- Update NEWS.md
- Enrich documentation
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants