mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
The endpoint answered with every match for the day, so response size tracked the library rather than the request: the busiest real date on a 96k-rom library is 1,101 roms at roughly 8 KiB of SimpleRomSchema each, and the 1 January early-return was the only thing holding that off ~23,000. The ceiling goes on the id selection rather than the response, so it bounds the hydration and the serialization too, which is where the weight is. It rides the existing index-ordered range scan, so the plan does not change and the engine stops early instead of walking the whole union. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>