mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-03 15:57:32 +02:00
4f6efeb3d1
fix: improve the performance of list artifacts 1. Change the query for listing tasks of scan which can use the db index. 2. Add the gin index for task.extra_attrs.report_uuids Fixes: #18013 Signed-off-by: chlins <chenyuzh@vmware.com>
2 lines
119 B
SQL
2 lines
119 B
SQL
CREATE INDEX IF NOT EXISTS idx_task_extra_attrs_report_uuids ON task USING gin ((extra_attrs::jsonb->'report_uuids'));
|