Files
Georges-Antoine Assi e427d8b093 fix(scan): fetch file rows per rom on quick scans (#5725)
* fix(scan): fetch file rows per rom on quick scans

A quick scan loaded every file row of a 200-rom batch up front, so a
platform with a few extracted multi-file games held hundreds of thousands
of RomFile objects at once and the worker was OOM-killed. Each rom now
fetches its own rows inside the scan semaphore, capping the rows held to
SCAN_WORKERS roms.

Refs #5706

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* style(scan): shorten the batch lookup comment

Addresses Greptile's review on #5725.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:01:51 -05:00
..