fix: adjust database connection pool settings for improved performance

This commit is contained in:
swve 2025-05-16 22:19:45 +02:00
parent 06fcc88a19
commit 90938de5f0

View file

@ -36,8 +36,8 @@ engine = create_engine(
learnhouse_config.database_config.sql_connection_string, # type: ignore learnhouse_config.database_config.sql_connection_string, # type: ignore
echo=False, echo=False,
pool_pre_ping=True, # type: ignore pool_pre_ping=True, # type: ignore
pool_size=10, pool_size=5,
max_overflow=20, max_overflow=0,
pool_recycle=300, # Recycle connections after 5 minutes pool_recycle=300, # Recycle connections after 5 minutes
pool_timeout=30 pool_timeout=30
) )