Revert last perf change

This commit is contained in:
James Agnew 2017-08-24 15:25:53 -04:00
parent 18213f1af9
commit c31ebebdea
1 changed files with 0 additions and 11 deletions

View File

@ -396,17 +396,6 @@ public abstract class BaseHapiTerminologySvc implements IHapiTerminologySvc {
if (myChildToParentPidCache == null) { if (myChildToParentPidCache == null) {
myChildToParentPidCache = ArrayListMultimap.create(); myChildToParentPidCache = ArrayListMultimap.create();
ourLog.info("Filling terminology parent/child cache");
int count = 0;
for (TermConceptParentChildLink next : myConceptParentChildLinkDao.findAll()) {
myChildToParentPidCache.put(next.getChildPid(), next.getParentPid());
if (count++ % 1000 == 0) {
ourLog.info("Loaded {} links", count);
}
}
ourLog.info("Done filling terminology parent/child cache");
} }
ourLog.info("Indexing {} / {} concepts", concepts.getContent().size(), concepts.getTotalElements()); ourLog.info("Indexing {} / {} concepts", concepts.getContent().size(), concepts.getTotalElements());