Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Expose all properties of the underlying DB connection pool #6119

Open
leite08 opened this issue Mar 1, 2024 · 1 comment
Open

[IDEA] Expose all properties of the underlying DB connection pool #6119

leite08 opened this issue Mar 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@leite08
Copy link

leite08 commented Mar 1, 2024

Is your feature request related to a problem? Please describe.

Establishing a database connection takes time, so DB connection pools have a configuration to set a minimum number of connections to be running at all times. This way, when new requests come the application can make use of already created DB connections without having to wait for a connection to be established.

Currently, Mirth only exposes a max-connections property - https://docs.nextgen.com/bundle/Mirth_User_Guide_4_4_0/page/connect/connect/topics/c_The_mirth_properties_File_connect_ug.html, so one can't specify the number of DB connections to be active at all times.

There are also other settings in a DB conn pool that one can adjust for each use case, like idle timeout

Describe your use case

We need this so we can better tweak Mirth to maximize the resources we have available.

Describe the solution you'd like

We would like to have the ability to set all properties supported by the underlying DB connection pool.

But, at minimum, expose a new property so we can set the minimum number of DB connections to be active at all times.

Describe alternatives you've considered

There's none.

Additional context

It seems this is the underlying DB connection pool: https://github.com/brettwooldridge/HikariCP?tab=readme-ov-file#gear-configuration-knobs-baby

@leite08 leite08 added the enhancement New feature or request label Mar 1, 2024
@leite08 leite08 changed the title [IDEA] Expose a configuration for minimum DB connections [IDEA] Expose all properties of the underlying DB connection pool Mar 1, 2024
@leite08
Copy link
Author

leite08 commented Mar 4, 2024

This started with this discussion: #6117

And got confirmation from folks on Slack that this is not yet possible and so could be a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant