Skip to content

fix(memory): add LIMIT to edge_history() to prevent unbounded result sets #1778

@bug-ops

Description

@bug-ops

The edge_history() method introduced in #1775 issues a SELECT with no LIMIT clause. When called via a future TUI/API endpoint, this could return unbounded results for high-churn predicates.

Add a configurable limit (default 100) before any call site is added to TUI or API layer.

Found by: perf validation in feat/issue-1341 (PERF-04, low severity).

Metadata

Metadata

Assignees

No one assigned

    Labels

    memoryzeph-memory crate (SQLite)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions