Reduce GC work time and make sure to use distinct query
This commit is contained in:
parent
1e76f71e3d
commit
4e5c8a9281
2 changed files with 2 additions and 1 deletions
|
@ -74,6 +74,7 @@ def find_repository_with_garbage():
|
|||
(RepositoryTag.lifetime_end_ts <=
|
||||
(epoch_timestamp - Namespace.removed_tag_expiration_s)))
|
||||
.limit(500)
|
||||
.distinct()
|
||||
.alias('candidates'))
|
||||
|
||||
found = (RepositoryTag
|
||||
|
|
Reference in a new issue