Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

reaction index #84

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/exec.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ RENAME USER 'isudns'@'localhost' to 'isudns'@'%';

-- ALTER TABLE `ng_words` ADD INDEX `ng_words_user_livestream_index` (`user_id`,`livestream_id`);

ALTER TABLE `livecomments` ADD INDEX `livestream_id_created_idx` (`livestream_id`, `created_at`);
ALTER TABLE `livecomments` DROP INDEX `livestream_id_created_idx`;
ALTER TABLE `livecomments` ADD INDEX `comm_livestream_id_created_idx` (`livestream_id` ASC, `created_at` DESC);

ALTER TABLE `reactions` ADD INDEX `react_livestream_id_created_idx` (`livestream_id` ASC, `created_at` DESC);