Add indices to MySQL ver. of EventDB

This commit is contained in:
celestora 2021-11-04 20:32:20 +02:00 committed by GitHub
parent c306899ead
commit 1bb097fea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,9 @@ CREATE TABLE `postViews` (
`timestamp` bigint(20) UNSIGNED NOT NULL, `timestamp` bigint(20) UNSIGNED NOT NULL,
`verified` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 `verified` tinyint(3) UNSIGNED NOT NULL DEFAULT 1
) ENGINE=Aria DEFAULT CHARSET=utf8; ) ENGINE=Aria DEFAULT CHARSET=utf8;
ALTER TABLE `postViews` ADD INDEX(`owner`, `group`, `subscribed`);
ALTER TABLE `notifications` ADD INDEX(`recipientType`, `recipientId`, `timestamp`);
COMMIT; COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;