From 02084813705e5aed0e00df15963c65c445443cd6 Mon Sep 17 00:00:00 2001 From: Omar Abou Selo Date: Thu, 1 Aug 2024 12:55:52 +0300 Subject: [PATCH] Further increase db connection pool (#198) --- backend/test_observer/data_access/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/test_observer/data_access/setup.py b/backend/test_observer/data_access/setup.py index fc131eba..7650d487 100644 --- a/backend/test_observer/data_access/setup.py +++ b/backend/test_observer/data_access/setup.py @@ -6,7 +6,7 @@ DEFAULT_DB_URL = "postgresql+pg8000://postgres:password@test-observer-db:5432/postgres" DB_URL = environ.get("DB_URL", DEFAULT_DB_URL) -engine = create_engine(DB_URL, pool_size=20, max_overflow=30) +engine = create_engine(DB_URL, pool_size=45, max_overflow=45) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)