mirror of
https://github.com/goharbor/harbor
synced 2025-04-15 16:24:58 +00:00
Create index for performance (#17022)
Add index to avoid full table scan Signed-off-by: stonezdj <stonezdj@gmail.com>
This commit is contained in:
parent
315d8a8993
commit
8115484f32
|
@ -17,4 +17,8 @@ Github proposal link : https://github.com/goharbor/community/pull/181
|
|||
UNIQUE ("repository", "digest", "vendor")
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_artifact_repository_name ON artifact (repository_name);
|
||||
CREATE INDEX IF NOT EXISTS idx_artifact_repository_name ON artifact (repository_name);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_execution_vendor_type_vendor_id ON execution (vendor_type, vendor_id);
|
||||
CREATE INDEX IF NOT EXISTS idx_execution_start_time ON execution(start_time);
|
||||
CREATE INDEX IF NOT EXISTS idx_audit_log_project_id_optime ON audit_log (project_id, op_time);
|
||||
|
|
Loading…
Reference in New Issue
Block a user