Skip to content

Commit

Permalink
Merge pull request DSpace#10089 from toniprieto/reduce-memory-oai
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorth authored Dec 24, 2024
2 parents 5610412 + 9af2e2e commit f6ce766
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dspace-oai/src/main/java/org/dspace/xoai/app/XOAI.java
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ private int index(Iterator<Item> iterator) throws DSpaceSolrIndexerException {
server.add(list);
server.commit();
list.clear();
try {
context.uncacheEntities();
} catch (SQLException ex) {
log.error("Error uncaching entities", ex);
}
}
}
System.out.println("Total: " + i + " items");
Expand Down

0 comments on commit f6ce766

Please sign in to comment.