Files
romm/backend
Georges-Antoine Assi d4f3d8be83 perf(metadata): stop storing the metadata dumps twice over in the cache
The LaunchBox import wrote the whole game record into three hashes: once
under its database id, and again under its title and folded title. The
Switch TitleDB import wrote every entry twice, once per id it is looked up
by. Both title indexes and the product id index now hold the id of the
record they point at, and the reader follows it.

Image lists also carried a `DatabaseID` repeating the field they are stored
under, plus a `CRC32` no lookup reads.

Measured on a full import of both dumps into the bundled valkey:
941MB -> 466MB of `used_memory`.

An index written by an earlier import still holds whole records, so a
lookup keeps answering off it until the next update rewrites the store.

Fixes #4395

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-09 20:25:42 -04:00
..
2026-09-08 17:59:52 -04:00
2024-02-10 12:43:39 -05:00
2025-07-05 19:17:40 -04:00
2026-05-17 17:39:47 -04:00