Skip to content

Commit fe262a0

Browse files
claudeBrawl345
authored andcommitted
Add missing database indexes to improve performance
1 parent 4c102c8 commit fe262a0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- +migrate Up
2+
3+
ALTER TABLE `quotes`
4+
ADD INDEX `chat_id` (`chat_id`);
5+
6+
ALTER TABLE `reminders`
7+
ADD INDEX `time` (`time`);
8+
9+
ALTER TABLE `reminders`
10+
ADD INDEX `chat_id_time` (`chat_id`, `time`);
11+
12+
ALTER TABLE `reminders`
13+
ADD INDEX `user_id_time` (`user_id`, `time`);

0 commit comments

Comments
 (0)