Skip to content

Commit

Permalink
increase overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Nov 26, 2024
1 parent 6d59932 commit 7067881
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/database/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
# Create an async SQLAlchemy engine
engine = create_async_engine(
settings.DATABASE_URL,
pool_pre_ping=True,
pool_size=10,
max_overflow=90,
pool_timeout=settings.POOL_TIMEOUT,
pool_recycle=settings.POOL_RECYCLE,
# echo=(settings.ENV != "PRD"),
pool_pre_ping=True,
)

# Create a session factory
Expand Down

0 comments on commit 7067881

Please sign in to comment.