Skip to content

Commit 520e3a7

Browse files
committed
bigger batches
1 parent 700199b commit 520e3a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/lowtuna/jsonblob/core/DataDirectoryCleanupJob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public DateTime apply(@Nullable String input) {
7777
}
7878

7979
log.debug("Submitting BulkBlobDeleteJobs for {} blobs in {}", toRemove.size(), dir);
80-
List<List<String>> subSets = Lists.partition(Lists.newArrayList(toRemove.keySet()), 100);
80+
List<List<String>> subSets = Lists.partition(Lists.newArrayList(toRemove.keySet()), 1000);
8181
subSets.parallelStream().forEach(list -> executorService.submit(new BulkBlobDeleteJob(Sets.newHashSet(list), fileSystemJsonBlobManager, deleteEnabled)));
8282
} catch (IOException e) {
8383
log.warn("Couldn't load metadata file from {}", dir.getAbsolutePath(), e);

0 commit comments

Comments
 (0)