From 3086d1715bc42302a1e64ddd54c5c7fbb0be16f8 Mon Sep 17 00:00:00 2001 From: lhx Date: Sat, 15 Nov 2025 10:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E6=B1=A0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/core/database.py b/app/core/database.py index e4e372f..756f0de 100644 --- a/app/core/database.py +++ b/app/core/database.py @@ -3,7 +3,7 @@ from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from .config import settings -engine = create_engine(settings.DATABASE_URL, echo=settings.APP_DEBUG) +engine = create_engine(settings.DATABASE_URL, echo=settings.APP_DEBUG, pool_size=15, max_overflow=30, pool_timeout=60, pool_recycle=300) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base()