Skip to content

Commit 10eb07a

Browse files
committed
Increase batch size
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 85a9d76 commit 10eb07a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vulnerabilities/pipelines/remove_duplicate_advisories.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def recompute_content_ids(self):
7878
logger=self.log,
7979
)
8080

81-
batch_size = 1000
81+
batch_size = 50000
8282

83-
for advisory in progress.iter(advisories.paginated()):
83+
for advisory in progress.iter(advisories.paginated(per_page=batch_size)):
8484
advisory.unique_content_id = compute_content_id(advisory.to_advisory_data())
8585
advisories.append(advisory)
8686
if len(advisories) % batch_size == 0:

0 commit comments

Comments
 (0)