mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-05-23 17:18:44 +00:00
perf(database): Adjust index creation strategy
This commit is contained in:
parent
97ba7cffaf
commit
a5e2932b6a
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ CREATE TABLE t_file
|
|||
);
|
||||
|
||||
-- 为文件表添加索引
|
||||
CREATE UNIQUE INDEX idx_file_hash ON t_file(hash);
|
||||
CREATE INDEX idx_file_hash ON t_file(hash);
|
||||
CREATE INDEX idx_file_name ON t_file(name);
|
||||
CREATE INDEX idx_file_status ON t_file(status);
|
||||
CREATE INDEX idx_file_suffix ON t_file(suffix);
|
||||
|
|
|
|||
|
|
@ -120,8 +120,8 @@ CREATE TABLE t_user
|
|||
|
||||
-- 为用户表添加索引
|
||||
CREATE UNIQUE INDEX idx_user_username ON t_user(username);
|
||||
CREATE UNIQUE INDEX idx_user_email ON t_user(email);
|
||||
CREATE UNIQUE INDEX idx_user_phone ON t_user(phone);
|
||||
CREATE INDEX idx_user_email ON t_user(email);
|
||||
CREATE INDEX idx_user_phone ON t_user(phone);
|
||||
CREATE INDEX idx_user_department_id ON t_user(department_id);
|
||||
CREATE INDEX idx_user_status ON t_user(status);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue