fix(unified-storage): reduce lock contention when pruning (#102425)
This commit is contained in:
1 parent
5a004939da
commit
3e3ab8e064
6 files changed
+33
-4
No files matched your search
@@ -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 }}
|
||||
);
|
||||
Reference in new issue
Block a user