MicroFish/backend/app
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
..
api fix(i18n): replace hardcoded Chinese stage names in simulation prepare SSE 2026-04-01 17:31:00 +08:00
models feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
services Merge pull request #428 from Ghostubborn/feat/i18n 2026-04-02 14:27:04 +08:00
utils fix: add max_items limit to fetch_all_edges to prevent unbounded memory growth 2026-04-20 20:23:57 +08:00
__init__.py Implement Report Agent for automated report generation and interaction 2025-12-09 15:10:55 +08:00
config.py fix(config): enable overriding of environment variables when loading .env file 2026-01-23 16:20:24 +08:00