Files
romm/backend/endpoints
Claude c4dd922491 perf(roms): make filter_roms file-loading opt-in for the gallery query
filter_roms feeds both the gallery/list endpoint (SimpleRomSchema, no
files) and the feed endpoints (which iterate rom.files / is_top_level).
The cleanup commit's unconditional selectinload(Rom.files) + joinedload
made the gallery/list and filter-value paths pay for files they never
serialize.

Gate the files load behind a new `include_files` flag (default False),
mirroring the existing `include_file_stats` opt-in, and plumb it through
get_roms_scalar. The 9 feed endpoints that actually read rom.files opt
in; the gallery/list, filter-values, identifiers, smart-collection, and
the three feeds that don't touch files (webrcade, fpkgi, kekatsu) skip
the load entirely — keeping the gallery query at zero file cost.

https://claude.ai/code/session_01PSXKmejPRzdxLFMN6P2QQ4
2026-06-02 12:56:02 +00:00
..
2026-05-29 20:54:32 -04:00
2026-05-26 18:22:12 -04:00
2026-05-26 18:22:12 -04:00
2026-03-08 14:51:28 -04:00
2026-03-15 11:25:39 -04:00
2026-04-05 22:35:37 -04:00
2026-01-18 23:35:03 -05:00
2025-12-07 16:34:22 -05:00
2026-01-18 22:27:46 -05:00
2026-03-07 09:56:17 -05:00
2026-03-07 09:56:17 -05:00
2026-04-01 19:27:34 -04:00