fix(unified-storage): reduce lock contention when pruning (#102425)

This commit is contained in:
Jean-Philippe Quéméner
2025-03-19 12:15:04 +01:00
committed by GitHub
parent 5a004939da
commit 3e3ab8e064
6 changed files with 33 additions and 4 deletions
@@ -17,6 +17,7 @@ WHERE {{ .Ident "guid" }} IN (
{{ .Ident "namespace" }} = {{ .Arg .Key.Namespace }}
AND {{ .Ident "group" }} = {{ .Arg .Key.Group }}
AND {{ .Ident "resource" }} = {{ .Arg .Key.Resource }}
AND {{ .Ident "name" }} = {{ .Arg .Key.Name }}
) AS {{ .Ident "ranked" }}
WHERE {{ .Ident "rn" }} > {{ .Arg .HistoryLimit }}
);