MicroFish/backend/app/utils
MiroFish Contributor 64e6520f52 fix: add max_items limit to fetch_all_edges to prevent unbounded memory growth
The fetch_all_nodes function has a max_items parameter (default 2000) to
prevent fetching too many items, but fetch_all_edges was missing this
safeguard. This could cause memory issues with graphs that have a large
number of edges.

Added _MAX_EDGES = 5000 as the default limit for edges, matching the
pattern already established for nodes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-20 20:23:57 +08:00
..
__init__.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
file_parser.py fix(file_parser): handle non-UTF-8 encoded text files with automatic encoding detection 2026-01-22 18:28:37 +08:00
llm_client.py fix: resolve 500 error caused by <think> tags and markdown code fences in content field from reasoning models like MiniMax/GLM 2026-03-06 00:30:31 +08:00
locale.py fix(i18n): validate Accept-Language header against registered locales 2026-04-02 14:20:15 +08:00
logger.py Add UTF-8 encoding support for Windows console in run.py and logger.py to prevent character encoding issues 2025-12-26 17:58:48 +08:00
retry.py Enhance backend functionality with OASIS simulation features 2025-12-01 15:03:44 +08:00
zep_paging.py fix: add max_items limit to fetch_all_edges to prevent unbounded memory growth 2026-04-20 20:23:57 +08:00