Commit Graph

2 Commits

Author SHA1 Message Date
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
666ghj da6548e96f feat(graph): implement pagination for fetching nodes and edges; add utility functions for streamlined data retrieval 2026-02-27 15:53:29 +08:00