Spinnich 60eb455fe8 perf(roms): cover the sibling dedup window with its index
`idx_roms_sibling_cover` (0090) was built for the sibling_roms self-join, but
the group_by_meta_id dedup window in `filter_roms` reads the same shape plus
two columns the index does not carry: `flashpoint_id`, the tail of the
partition's COALESCE chain, and `fs_name_no_ext`, the tiebreaker each partition
sorts by. A covering index has to carry every referenced column, so those two
omissions dropped the window to a full scan of the wide roms row -- JSON
metadata blobs included -- and the gallery runs that window up to four times
per page load (page, count, char_index, rom_id_index).

Grouping is on by default, so this is the default path for every large library.

Measured on a 92.8k-rom MariaDB copy (963 MB roms table, 256 MB buffer pool)
with the queries the endpoint actually generates:

    page of 72     5.43s -> 0.80s
    count          5.55s -> 1.01s
    rom_id_index   5.48s -> 1.10s
    char_index     5.46s -> 1.06s
    combined      21.93s -> 3.97s

EXPLAIN moves from `type=ALL, key=NULL` to `type=index, Using index`. Real
`fs_name_no_ext` values are far shorter than the column's varchar(450), so the
index grows 4 MB -> 7 MB and rebuilds in ~5s at that row count.

The wider index costs the sibling_roms join ~170ms -> ~209ms per 72-rom page.
Keeping the narrow index alongside a second dedup-only one recovers that, but
the two would share their first eight columns and the per-page totals came out
level (2.13s vs 2.12s), so a single index wins on write amplification and stops
the two consumers drifting apart again.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-01 19:35:23 +00:00
2026-07-26 15:53:28 -04:00
2026-07-19 09:56:14 -04:00
2026-07-28 21:28:09 -04:00
2026-07-27 08:22:25 -04:00
2026-08-01 10:44:35 -04:00
2026-04-15 19:20:17 -04:00
2025-07-03 23:37:00 -03:00
2024-05-21 19:22:14 -04:00
2026-06-07 09:16:50 -04:00
2024-02-11 16:41:36 +01:00
2026-07-29 16:55:22 -04:00
2024-07-09 13:43:14 +02:00

romm logo

A beautiful, powerful, self-hosted ROM manager and player.

Trendshift hackernews badge
selfh.st badge Discord

Overview

RomM (ROM Manager) allows you to scan, enrich, browse and play your game collection with a clean and responsive interface. With support for multiple platforms, various naming schemes, and custom tags, RomM is a must-have for anyone who plays on emulators.

Features

  • Scan and enhance your game library with metadata from IGDB, Screenscraper and MobyGames
  • Fetch custom artwork from SteamGridDB
  • Display your achievements from Retroachievements
  • Metadata available for 400+ platforms
  • Play games directly from the browser using EmulatorJS and RuffleRS
  • Share your library with friends with limited access and permissions
  • Official apps for Playnite, Android and CFWs
  • Supports multi-disk games, DLCs, mods, hacks, patches, and manuals
  • Parse and filter by tags in filenames
  • View, upload, update, and delete games from any modern web browser

Preview

🖥 Desktop 📱 Mobile
desktop preview mobile preview

Installation

To start using RomM, check out the Quick Start Guide in the docs. If you are having issues with RomM, please review the page for troubleshooting steps.

Contributing

To contribute to RomM, please check Contribution Guide.

Official apps

Apps and integrations built and maintained by the RomM team.

  • Argosy by @tmgast: Native Android client for installing and launching games.
  • Grout by @BrandonKowalski: Download and manage games from your RomM instance directly on your Linux based retro handheld. Supports: Allium, Batocera, Knulli, MinUI, muOS, NextUI, Onion, ROCKNIX, Spruce, TrimUI
  • Playnite plugin by @gantoine: Library plugin for Playnite

Community

Here are a few projects maintained by members of our community. Please note that the RomM team does not regularly review their source code.

Mobile

Desktop

Handhelds

Other

Support the project

Consider supporting the development of this project on Open Collective. All funds will be used to cover the costs of hosting, development, and maintenance of RomM.

Open Collective

Our Friends

Here are a few projects that we think you might like:

  • EmulatorJS: An embeddable, browser-based emulator
  • RetroDECK: Retro gaming on SteamOS and Linux
  • ES-DE Frontend: Emulator frontend for Linux, macOS and Windows
  • Gaseous: Another ROM manager with web-based emulator
  • Retrom: A centralized game library/collection management service
  • Drop: Steam-like experience for DRM-free games
  • LanCommander: Digital game platform for PC games
  • Steam ROM Manager: An app for managing ROMs in Steam

Supported By

These companies support us by providing their tools for free:

Greptile Aikido
Description
No description provided
Readme AGPL-3.0 492 MiB
Languages
Python 50.1%
Vue 40.3%
TypeScript 7.2%
CSS 0.9%
Shell 0.6%
Other 0.8%