Skip to content

Commit ceabe20

Browse files
committed
Reduce Pyxis query size from 50 to 20 repositories
Pyxis occasionally fails to handle queries with 50 repositories in the filter, likely due to database growth. Reducing the chunk size to 20 to improve query reliability.
1 parent 6a8375c commit ceabe20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freshmaker/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ def find_images_with_packages_from_content_set(
10731073
images = []
10741074
# Split the repos to small chunks to generate "small" queries
10751075
repos_iterator = iter(repos)
1076-
chunk_size = 50
1076+
chunk_size = 20
10771077
for i in range(0, len(repos), chunk_size):
10781078
repos_chunk = {k: repos[k] for k in islice(repos_iterator, chunk_size)}
10791079
images_chunk = self.find_images_with_included_rpms(

0 commit comments

Comments
 (0)