mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
43ccd2f09f
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); |