mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The readers tolerated both the old and the new shape of every index this branch changed, which left two shapes supported forever and, on an install whose scheduled update is off, meant the old store answered every lookup and the saving never landed at all. Each store now carries a schema stamp. A store whose stamp is missing or stale reads as unpopulated, is dropped at startup, and has its import queued the way the WebP backfill is, so the shape change causes the rebuild instead of being worked around. The readers know one shape again. The projection each store is written with moves next to its key, and the three stores that had none get one: Mame.xml kept 24 fields per record to serve `Name`, Files.xml kept the platform and filename its cache key already carries, and an alternate name entry kept the name it is stored under. Together with the image list that is ~135MB. Measured against the real dump: the eight LaunchBox hashes hold 385MB, and a store stamped by an earlier release is dropped at startup for 386MB of `used_memory` reclaimed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>