refactor: sped up game list loading code, plus many small bug fixes

This commit is contained in:
Michael Green
2023-06-27 23:31:29 +10:00
parent 3f269d802b
commit ee4e5d4037
12 changed files with 315 additions and 210 deletions

View File

@@ -302,7 +302,9 @@ CREATE TABLE `games_roms` (
`path` longtext,
`metadatasource` int DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id_UNIQUE` (`id`)
UNIQUE KEY `id_UNIQUE` (`id`),
INDEX `gameid` (`gameid` ASC) VISIBLE,
INDEX `id_gameid` (`gameid` ASC, `id` ASC) VISIBLE
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;