Skip to content

Commit 79e216b

Browse files
authored
feat: optimize pool (#1363)
* feat: optimize pool * feat: fix format
1 parent 05ffddf commit 79e216b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/memos/api/server_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def health_check():
3939
"version": app.version,
4040
}
4141

42+
4243
# Request validation failed
4344
app.exception_handler(RequestValidationError)(APIExceptionHandler.validation_error_handler)
4445
# Invalid business code parameters

src/memos/graph_dbs/polardb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __init__(self, config: PolarDBGraphDBConfig):
165165

166166
# Create connection pool
167167
self.connection_pool = psycopg2.pool.ThreadedConnectionPool(
168-
minconn=2,
168+
minconn=1,
169169
maxconn=maxconn,
170170
host=host,
171171
port=port,

0 commit comments

Comments
 (0)