Skip to content

Commit

Permalink
重複しているインデックスを削除した
Browse files Browse the repository at this point in the history
(a, b)の複合インデックスは(a)のインデックスを兼ねる
ので、(user_id)と(LOWER(user_id))のインデックスを削除した。
  • Loading branch information
hotate29 committed Jan 12, 2023
1 parent 5ae62e5 commit bba7574
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config/database-definition.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ CREATE TABLE submissions (
execution_time INT,
PRIMARY KEY (id)
);
CREATE INDEX ON submissions (user_id);
CREATE INDEX ON submissions (LOWER(user_id));
CREATE INDEX ON submissions (epoch_second);
CREATE INDEX ON submissions (user_id, epoch_second ASC);
CREATE INDEX ON submissions (LOWER(user_id), epoch_second ASC);
Expand Down

0 comments on commit bba7574

Please sign in to comment.