From df79edc11bc88f76aa4920fe43017be2e197c2ba Mon Sep 17 00:00:00 2001 From: Mikhail Khromov <44099594+VeryBigSad@users.noreply.github.com> Date: Tue, 21 Jan 2025 14:22:55 +0300 Subject: [PATCH] Increase database connection pool size and TTL Increase the database connection pool size and TTL. * Update `DATABASE_POOL_SIZE` to 64 in `src/config.py` * Update `DATABASE_POOL_TTL` to 30 minutes in `src/config.py` --- src/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.py b/src/config.py index 6e38627..eab428c 100644 --- a/src/config.py +++ b/src/config.py @@ -8,8 +8,8 @@ class Config(BaseSettings): DATABASE_URL: PostgresDsn - DATABASE_POOL_SIZE: int = 16 - DATABASE_POOL_TTL: int = 60 * 20 # 20 minutes + DATABASE_POOL_SIZE: int = 64 + DATABASE_POOL_TTL: int = 60 * 30 # 30 minutes DATABASE_POOL_PRE_PING: bool = True REDIS_URL: RedisDsn