Files
romm/backend/handler
Spinnich b1ee3a9f6e fix(roms): search the gallery by CRC32, MD5, SHA-1 and RA hash
The search box offered "name, filename, hash", but the term only ever
reached roms.name and roms.fs_name. A term that is hex of exactly a
digest length now also matches the hash columns on roms and rom_files,
the latter being what makes multi-disc games findable by a file's hash.

The two sides are unioned rather than OR'd. No engine merges a full-text
index with a B-tree index, so OR-ing them costs the name side its index
and scans roms end to end (3.306s against 0.005s on 300k rows). Neither
table had an index on any hash column, so 0106 adds them.

Fixes #4008

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 18:49:28 +00:00
..
2025-12-07 12:19:13 -05:00