{"repo":"NousResearch/hermes-agent","public_id":"79324","display_label":"FTS trash table deletion O(n²) performance fix","summary":"A performance issue was identified where FTS trash table cleanup used a DELETE...IN(SELECT...LIMIT N) pattern that scaled quadratically on large tables. A proposed fix replaces the re-scanning approach with a high-water marker strategy.","subsystem":null,"counts":{"members":3,"open_issues":0,"open_issues_distinct":0,"open_prs":0,"closed_issues":1,"merged_prs":1,"attempt_prs":1},"landed_fix":{"status":"merged_to_main","basis":"structural","pr":81043,"merged_at":"2026-08-07T13:10:48+00:00"},"resolution":{"state":"resolved","by":"pr-81043"},"freshness":{"state":"verified","last_verified_at":"2026-08-07T13:10:48+00:00","is_stale":false},"grouping":{"backbone":"STRUCTURAL_SPANNING","link_density":0.6666666666666666},"fix_edges":[{"issue_number":79324,"pr_number":81043,"tier":"verified","basis":"closing_ref","confidence":0.95,"recoverable_from_timeline":true,"pr_merged_at":"2026-08-07T13:10:48+00:00"}],"members":[{"kind":"issue","number":79324,"title":"[Perf]: _fts_teardown_trash_step DELETE ... IN (SELECT ... LIMIT N) is O(n²) on large trash tables","url":null,"state":"closed"},{"kind":"pr","number":79359,"title":"perf(fts): drain trash tables with a high-water marker instead of re-scanning","url":null,"state":"closed","close_reason":{"refs":[{"kind":"pr","value":"#81043","number":81043}],"category":"merged_via","implication":"superseded"},"merged":false},{"kind":"pr","number":81043,"title":"perf(fts): drain trash tables with a high-water marker instead of re-scanning","url":null,"state":"merged","close_reason":{"category":"merged"},"merged":true,"is_fix_pr":true,"fix_tier":"verified","files_changed":["hermes_state_search.py","tests/test_hermes_state.py"]}],"trust":{"default_tier":"verified","includes_suggested":false}}