Browse Source

Expand connection pool to 256

chenhaiyang 1 year ago
parent
commit
dc77ec3bab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/db/session.py

+ 1 - 1
app/db/session.py

@@ -11,7 +11,7 @@ engine = create_engine(
     connect_args={"check_same_thread": False},
     # settings.SQLALCHEMY_DATABASE_URL,
     # pool_pre_ping=True,
-    # pool_size=1000,
+    pool_size=256,
     # max_overflow=2000,
 )
 SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)