Skip to content

Commit

Permalink
[DSC-1473] fix commit and clear of the context to be done after each …
Browse files Browse the repository at this point in the history
…page on item enhancer script
  • Loading branch information
francescopioscognamiglio committed Mar 26, 2024
1 parent 6831a9d commit 9387ac1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ private void enhanceItems(Context context) {
int total = itemService.countArchivedItems(context);
for (int offset = 0; offset < total; offset += PAGE_SIZE) {
findItemsToEnhance(offset).forEachRemaining(this::enhanceItem);
context.commit();
context.clear();
}
context.commit();
context.clear();
} catch (SQLException e) {
throw new SQLRuntimeException(e);
}
Expand Down

0 comments on commit 9387ac1

Please sign in to comment.