Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: optimize pool (#1363)
* feat: optimize pool

* feat: fix format
  • Loading branch information
wustzdy authored Mar 27, 2026
commit 79e216b3ad21a98705bf0cfcb265b906649c7340
1 change: 1 addition & 0 deletions src/memos/api/server_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def health_check():
"version": app.version,
}


# Request validation failed
app.exception_handler(RequestValidationError)(APIExceptionHandler.validation_error_handler)
# Invalid business code parameters
Expand Down
2 changes: 1 addition & 1 deletion src/memos/graph_dbs/polardb.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(self, config: PolarDBGraphDBConfig):

# Create connection pool
self.connection_pool = psycopg2.pool.ThreadedConnectionPool(
minconn=2,
minconn=1,
maxconn=maxconn,
host=host,
port=port,
Expand Down
Loading