Overhaul of SQL queries to (hopefully) improve performance with large libraries (#233)
* Latest round of performance updates * Improved first set up logging * Updated logging display
This commit is contained in:
23
gaseous-server/Support/Database/MySQL/gaseous-1010.sql
Normal file
23
gaseous-server/Support/Database/MySQL/gaseous-1010.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
CREATE OR REPLACE VIEW `view_Games` AS
|
||||
SELECT
|
||||
a.*, b.AgeGroupId
|
||||
FROM
|
||||
view_GamesWithRoms a
|
||||
INNER JOIN
|
||||
(SELECT
|
||||
view_GamesWithRoms.Id,
|
||||
MAX((SELECT
|
||||
AgeGroupId
|
||||
FROM
|
||||
ClassificationMap
|
||||
WHERE
|
||||
RatingId = AgeRating.Rating)) AgeGroupId
|
||||
FROM
|
||||
view_GamesWithRoms
|
||||
LEFT JOIN Relation_Game_AgeRatings ON view_GamesWithRoms.Id = Relation_Game_AgeRatings.GameId
|
||||
LEFT JOIN AgeRating ON Relation_Game_AgeRatings.AgeRatingsId = AgeRating.Id
|
||||
GROUP BY Id) b ON a.Id = b.Id
|
||||
ORDER BY NameThe;
|
||||
|
||||
ALTER TABLE `ServerLogs`
|
||||
ADD COLUMN `CallingUser` VARCHAR(255) NULL AFTER `CallingProcess`;
|
Reference in New Issue
Block a user