Dashboard and feed queries have no supporting indexes #137

closed cmc opened this on 2026-09-03 05:17 UTC · store · milestone v1.12.0

Discussion

cmc 2026-09-03 05:17 UTC

internal/store/dashboard.go filters issues and merge_requests by author_id and orders by updated_at; neither column is indexed. issue_assignees's primary key (issue_id, user_id) cannot serve AssignedIssues's user_id lookup. Full scans, invisible at 68 repositories.

Remedy: indexes on (author_id, updated_at) for both tables and on issue_assignees(user_id).

closed by commit f686b22ad7 by cmc: store: the dashboard walks an index instead of sorting the table

2026-09-04 15:58 UTC