Skip to content

Commit 767d665

Browse files
committed
refactor: Optimize connection pool
1 parent ccbc65d commit 767d665

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

backend/apps/datasource/models/datasource.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class DatasourceConf(BaseModel):
122122
timeout: int = 30
123123
lowVersion: bool = False
124124
ssl: bool = False
125+
poolSize: int = 5
125126

126127
def to_dict(self):
127128
return {
@@ -138,7 +139,8 @@ def to_dict(self):
138139
"mode": self.mode,
139140
"timeout": self.timeout,
140141
"lowVersion": self.lowVersion,
141-
"ssl": self.ssl
142+
"ssl": self.ssl,
143+
"poolSize": self.poolSize
142144
}
143145

144146

0 commit comments

Comments
 (0)