[MIRROR] SQL Schema Version 5.11 / Add indices for ticket table to support Statbus operations (#1049)

* SQL Schema Version 5.11 / Add indices for ticket table to support Statbus operations (#53541)

* I hope you're proud of yourselves. You've driven away another customer! It's baffling, I tell you! Your deep rooted lack of self-control only fosters failure in every endeavor we undertake! I mean, it's always one step forward and two steps back! Why? Don't you see the example I try to set for you?

* thanks jordie

* SQL Schema Version 5.11 / Add indices for ticket table to support Statbus operations

Co-authored-by: Bobbahbrown <bobbahbrown@gmail.com>
This commit is contained in:
SkyratBot
2020-09-29 12:44:04 +02:00
committed by GitHub
co-authored by Bobbahbrown
parent 72fab03b01
commit 6f084f3a6e
4 changed files with 25 additions and 6 deletions
+5 -1
View File
@@ -547,7 +547,11 @@ CREATE TABLE `ticket` (
`timestamp` datetime NOT NULL,
`recipient` varchar(32) DEFAULT NULL,
`sender` varchar(32) DEFAULT NULL,
PRIMARY KEY (`id`)
PRIMARY KEY (`id`),
KEY `idx_ticket_act_recip` (`action`, `recipient`),
KEY `idx_ticket_act_send` (`action`, `sender`),
KEY `idx_ticket_tic_rid` (`ticket`, `round_id`),
KEY `idx_ticket_act_time_rid` (`action`, `timestamp`, `round_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
DELIMITER $$