Index the event log's resubmit count with deleted_at (closes #325) #468

Merged
clawbot merged 1 commits from issue-325-resubmit-index into next 2026-10-02 21:23:34 +02:00
1 Commits
Author SHA1 Message Date
sneak ded9b0398e Index the event log's resubmit count with deleted_at (closes #325)
check / check (push) Successful in 3m14s
The resubmit count matches resubmitted_from_id against a page of event
ids, and GORM adds deleted_at IS NULL. With no statistics, SQLite
preferred the deleted_at index once the page held five or more ids, so
every event log page read every live event. deleted_at now joins
resubmitted_from_id in idx_events_resubmitted_from_id, as for the other
event-tier indexes, and the plan test checks the statement with a full
page of ids.

Model: opus-5-5
2026-10-02 19:10:20 +00:00