Revise saveConcept method to use myConceptDao.save instead of myConceptDao.saveAndFlush (to avoid overloading CPU with flush computations when persisting large codesystems, e.g. one with 399837 concepts).

This commit is contained in:
Joel Schneider (NMDP) 2017-02-28 22:43:00 -06:00
parent 0d066275a3
commit 2f1662b59f
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ public abstract class BaseHapiTerminologySvc implements IHapiTerminologySvc {
if (theConcept.getId() == null || theConcept.getIndexStatus() == null) {
retVal++;
theConcept.setIndexStatus(BaseHapiFhirDao.INDEX_STATUS_INDEXED);
myConceptDao.saveAndFlush(theConcept);
myConceptDao.save(theConcept);
}
ourLog.trace("Saved {} and got PID {}", theConcept.getCode(), theConcept.getId());