mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
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