Skip to content

Commit

Permalink
Merge pull request #1924 from DSD-DBS/pool-size
Browse files Browse the repository at this point in the history
fix: Increase connection pool to 20 concurrent database connections
  • Loading branch information
MoritzWeber0 authored Oct 24, 2024
2 parents 7963611 + ce5cb51 commit efb43ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/capellacollab/core/database/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
engine = sa.create_engine(
config.database.url,
connect_args={"connect_timeout": 5, "options": "-c timezone=utc"},
pool_size=20,
pool_timeout=5,
)
SessionLocal = orm.sessionmaker(autocommit=False, autoflush=False, bind=engine)

Expand Down

0 comments on commit efb43ea

Please sign in to comment.