Ben Senescu
116719a019
fix(db): add missing indexes and drop redundant ones (#319)
Postgres advisor flagged seq-scans and redundant indexes across both
backends (D1 + Postgres):
- add projects(organization_id) — org-scoped project listings seq-scanned
- add account(account_id, provider_id) — better-auth sign-in lookup
- add verification(expires_at) — expired-token cleanup range scan
- drop saved_keyword_tag_assignments_keyword_idx — covered by unique
(saved_keyword_id, tag_id) prefix
- drop rank_snapshots_run_idx — covered by unique
(run_id, tracking_keyword_id, device) prefix
Mirrored in both schema dialects + parity-test required-index guard.
2026-07-02 18:15:46 -04:00
..
2026-07-02 18:15:46 -04:00
2026-02-27 14:09:33 -05:00
2026-02-27 14:09:33 -05:00
2026-03-11 23:01:52 -04:00
2026-03-19 19:24:34 -04:00
2026-03-19 19:24:34 -04:00
2026-03-26 20:25:27 -04:00
2026-03-26 20:25:27 -04:00
2026-04-14 20:29:38 -04:00
2026-04-16 00:42:10 -04:00
2026-04-16 10:41:31 -04:00
2026-04-28 20:56:06 -04:00
2026-05-05 22:18:35 -04:00
2026-05-06 22:41:02 -04:00
2026-05-12 00:02:43 -04:00
2026-05-12 00:02:43 -04:00
2026-05-13 15:22:10 -04:00
2026-05-19 20:53:13 -04:00
2026-05-20 23:36:30 -04:00
2026-05-26 23:05:20 -04:00
2026-06-04 13:50:26 -04:00
2026-06-04 18:06:16 -04:00
2026-06-04 23:04:55 -04:00
2026-06-10 15:42:55 -04:00
2026-06-14 17:19:26 -04:00
2026-06-19 13:20:52 -04:00
2026-06-19 18:09:52 -04:00
2026-07-02 18:15:46 -04:00
2026-07-02 18:15:46 -04:00