Skip to content

Commit

Permalink
Merged in DSC-1473_updated (pull request DSpace#1936)
Browse files Browse the repository at this point in the history
[DSC-1473] fix commit and clear of the context to be done after each page on item enhancer script
  • Loading branch information
francescopioscognamiglio committed Mar 26, 2024
2 parents 6831a9d + 9387ac1 commit e59894f
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 e59894f

Please sign in to comment.