mirror of
https://github.com/openvk/openvk
synced 2024-11-13 10:39:24 +03:00
Add indices to MySQL ver. of EventDB
This commit is contained in:
parent
c306899ead
commit
1bb097fea7
1 changed files with 3 additions and 0 deletions
|
@ -29,6 +29,9 @@ CREATE TABLE `postViews` (
|
|||
`timestamp` bigint(20) UNSIGNED NOT NULL,
|
||||
`verified` tinyint(3) UNSIGNED NOT NULL DEFAULT 1
|
||||
) ENGINE=Aria DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `postViews` ADD INDEX(`owner`, `group`, `subscribed`);
|
||||
ALTER TABLE `notifications` ADD INDEX(`recipientType`, `recipientId`, `timestamp`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
|
Loading…
Reference in a new issue