mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 18:11:16 +01:00
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>