added new index to session table and moved queries some around to be chained
This commit is contained in:
@@ -60,7 +60,7 @@ CREATE TABLE `playtime_display_map_vote_choices` (
|
||||
CONSTRAINT `fk_votechoice_steamid` FOREIGN KEY (`steamid`) REFERENCES `playtime_display_players` (`steamid`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- unloze_playtimestats.playtime_display_sessions definition
|
||||
|
||||
|
||||
CREATE TABLE `playtime_display_sessions` (
|
||||
`session_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
@@ -79,5 +79,6 @@ CREATE TABLE `playtime_display_sessions` (
|
||||
KEY `idx_interval` (`session_start_dt`,`session_end_dt`),
|
||||
KEY `idx_dow_tod` (`session_start_dow`,`session_start_tod`),
|
||||
KEY `idx_country` (`country_code`),
|
||||
KEY `idx_steamid_end` (`steamid`,`session_end_dt`),
|
||||
CONSTRAINT `fk_session_steamid` FOREIGN KEY (`steamid`) REFERENCES `playtime_display_players` (`steamid`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=215 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1201 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
Reference in New Issue
Block a user