Files
romm/backend/utils
Georges-Antoine Assi 055700bfed perf(backend): index the last unindexed foreign keys on PostgreSQL
The list covered firmware and the music tables but not saves.user_id,
states.user_id, screenshots.user_id, rom_file_user.user_id,
memory_cards.platform_id or streaming_container_adoptions.decided_by_user_id,
so a user delete still sequentially scanned the three largest per-user tables
on PostgreSQL, which is the case the pass set out to fix.

Add a test that recomputes the rule (a single-column foreign key whose column
leads no index, primary key or unique constraint) from the model metadata, so
the next model foreign key cannot be forgotten silently.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-07 12:57:01 -04:00
..
2025-09-04 11:17:00 -03:00
2026-08-01 14:52:55 -04:00
2026-06-28 21:48:50 -04:00
2026-07-06 22:17:56 -04:00