diff --git a/backend/capellacollab/core/database/__init__.py b/backend/capellacollab/core/database/__init__.py index 0e7bc67fe..652e0becd 100644 --- a/backend/capellacollab/core/database/__init__.py +++ b/backend/capellacollab/core/database/__init__.py @@ -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)