mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: adjust database connection pool settings for improved performance
This commit is contained in:
parent
06fcc88a19
commit
90938de5f0
1 changed files with 2 additions and 2 deletions
|
|
@ -36,8 +36,8 @@ engine = create_engine(
|
|||
learnhouse_config.database_config.sql_connection_string, # type: ignore
|
||||
echo=False,
|
||||
pool_pre_ping=True, # type: ignore
|
||||
pool_size=10,
|
||||
max_overflow=20,
|
||||
pool_size=5,
|
||||
max_overflow=0,
|
||||
pool_recycle=300, # Recycle connections after 5 minutes
|
||||
pool_timeout=30
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue