Commit 195297a8 authored by Matija Obreza's avatar Matija Obreza
Browse files

FIX: OOM when reindexing Elasticsearch


Signed-off-by: Matija Obreza's avatarMatija Obreza <matija.obreza@croptrust.org>
parent 9c9927dd
......@@ -404,10 +404,12 @@ public class ElasticsearchServiceImpl implements ElasticsearchService, Initializ
}
}
for (R x : results) {
// detach from EM
em.detach(x);
}
// for (R x : results) {
// // detach from EM
// em.detach(x);
// }
em.clear();
for (Long id : notFoundIds) {
LOG.debug("Removing from index {} {}", clazz.getName(), id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment