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

Allow for the main DB pool to have a customized pool count #1888

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

joshk
Copy link
Collaborator

@joshk joshk commented Feb 6, 2025

From the Ecto docs:

the number of pools to run concurrently, increase this option when the pool itself may be under contention. When running multiple pools, queries are randomly routed to different pools, without taking into account how many connections are available in each. So in some circumstances, you may be routed to a fully busy pool while others have connections available. The overall number of connections used will be pool_size * pool_count. Defaults to 1

@joshk joshk requested review from jjcarstens and nshoes February 6, 2025 00:17
@nshoes nshoes merged commit 9b79533 into main Feb 6, 2025
2 checks passed
@nshoes nshoes deleted the customize-the-db-pool-count branch February 6, 2025 00:42
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.

2 participants