1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

When in development, change database pool to add GOOD_JOB_MAX_THREADS to RAILS_MAX_THREADS

This commit is contained in:
Claude Ayitey 2024-01-06 15:03:17 +00:00
parent 4ad1faacc8
commit 121dc107d5

View file

@ -23,6 +23,7 @@ development: &development
<<: *default
database: maybe_ai_development
adapter: postgresql
pool: <%= ENV.fetch("RAILS_MAX_THREADS", 5).to_i + 1 + 2 + ENV.fetch("GOOD_JOB_MAX_THREADS", 5).to_i %>
# The specified database role being used to connect to postgres.
# To create additional roles in postgres see `$ createuser --help`.