Files
romm/backend/handler/database
nendo 97d2f7b5b7 perf(roms): trim per-page work on the roms list endpoint
Remove loader-option and query work the list endpoint discards:

- Batch the has_notes flag instead of eager-loading Rom.notes, whose
  backrefs to roms and users are both lazy="joined".
- noload RomUser.user everywhere rom_users feeds RomUserSchema, which
  carries no user fields.
- noload Rom.platform and Rom.metadatum in get_siblings_for_roms, where
  load_only narrows columns but not relationships.
- Let callers that resolve siblings themselves skip the sibling
  relationship load entirely.
- Eager-load RomFile.track_meta in get_files_for_roms, matching every
  other call site.
- Order the page over bare ids and fetch rows by primary key when the rom
  id index is off, instead of sorting the entity through a filesort.
- Derive the file-stat flags from the page's files when with_files is
  set, instead of running three correlated subqueries per row.
- Index rom_files on (rom_id, category).

Claude-Session: https://claude.ai/code/session_01J1pbRJBY3PatzkB5skQNEU
2026-08-22 08:19:18 +09:00
..
2025-09-04 11:17:00 -03:00
2026-03-12 23:02:12 -04:00
2026-08-01 14:49:58 -04:00
2026-04-06 22:29:55 -04:00
2026-07-19 22:59:37 -04:00