|
@@ -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)
|