From 945a5ad142dea6fdc10b97c6144e2626283d11a1 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 23 十二月 2024 09:45:55 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway

---
 app/models/base_model.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/models/base_model.py b/app/models/base_model.py
index b8efcb8..580f262 100644
--- a/app/models/base_model.py
+++ b/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()

--
Gitblit v1.8.0