xuyonghao
2024-12-23 a71658eda62c2a0a8a322872c3ab66261245bdae
app/models/base_model.py
@@ -8,7 +8,7 @@
DATABASE_URL = os.getenv('DATABASE_URL') or settings.database_url
engine = create_engine(DATABASE_URL)
engine = create_engine(DATABASE_URL, pool_size=20, max_overflow=50)
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Base = declarative_base()