mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #10089 from toniprieto/reduce-memory-oai
This commit is contained in:
@@ -334,6 +334,11 @@ public class XOAI {
|
||||
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");
|
||||
|
Reference in New Issue
Block a user