mirror of
https://github.com/goharbor/harbor
synced 2025-04-16 11:12:23 +00:00

1. Add db index for subject_artifact_id in table artifact_accessory. 2. Optimize the SQL of excluding the accessory for artifact count. Signed-off-by: chlins <chenyuzh@vmware.com>
3 lines
159 B
SQL
3 lines
159 B
SQL
DROP TABLE IF EXISTS harbor_resource_label;
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_artifact_accessory_subject_artifact_id ON artifact_accessory (subject_artifact_id); |