mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 10:33:22 +01:00
The v2 gallery per-card endpoint reused get_rom, which runs the full detail eager-load (saves, states, screenshots, collections) that SimpleRomSchema never serializes, making cards slow to hydrate. Add get_rom_simple backed by a with_simple_details decorator that loads only what SimpleRomSchema needs: platform, metadatum, rom_users, files, sibling_roms (+ their rom_users), notes, and the deferred file-count columns. Fixes #3771 Generated-By: PostHog Code Task-Id: 9233f519-079f-4990-8b48-9d12c81440b4