fix: [AH-585]: add index to improve query performance found during load testing (#2982)

* fix: [AH-585]: add index to improve query performance found during load testing
This commit is contained in:
Shivakumar Ningappa 2024-11-12 13:18:42 +00:00 committed by Harness
parent 92bea1dfbf
commit edf01c5a9b
5 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1 @@
DROP INDEX IF EXISTS index_gc_manifest_review_queue2;

View File

@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS index_gc_manifest_review_queue2
ON gc_manifest_review_queue (registry_id, manifest_id, review_after);

View File

@ -0,0 +1,2 @@
--noop as gc_manifest_review_queue table doesn't exist in gitness
;

View File

@ -0,0 +1,2 @@
--noop as gc_manifest_review_queue table doesn't exist in gitness
;

View File

@ -78,7 +78,7 @@ const (
const ( const (
manifestListCreateGCReviewWindow = 1 * time.Hour manifestListCreateGCReviewWindow = 1 * time.Hour
manifestListCreateGCLockTimeout = 10 * time.Second manifestListCreateGCLockTimeout = 10 * time.Second
manifestTagGCLockTimeout = 10 * time.Second manifestTagGCLockTimeout = 30 * time.Second
tagDeleteGCLockTimeout = 10 * time.Second tagDeleteGCLockTimeout = 10 * time.Second
manifestTagGCReviewWindow = 1 * time.Hour manifestTagGCReviewWindow = 1 * time.Hour
manifestDeleteGCReviewWindow = 1 * time.Hour manifestDeleteGCReviewWindow = 1 * time.Hour