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:
parent
0d066275a3
commit
2f1662b59f
|
@ -396,7 +396,7 @@ public abstract class BaseHapiTerminologySvc implements IHapiTerminologySvc {
|
||||||
if (theConcept.getId() == null || theConcept.getIndexStatus() == null) {
|
if (theConcept.getId() == null || theConcept.getIndexStatus() == null) {
|
||||||
retVal++;
|
retVal++;
|
||||||
theConcept.setIndexStatus(BaseHapiFhirDao.INDEX_STATUS_INDEXED);
|
theConcept.setIndexStatus(BaseHapiFhirDao.INDEX_STATUS_INDEXED);
|
||||||
myConceptDao.saveAndFlush(theConcept);
|
myConceptDao.save(theConcept);
|
||||||
}
|
}
|
||||||
|
|
||||||
ourLog.trace("Saved {} and got PID {}", theConcept.getCode(), theConcept.getId());
|
ourLog.trace("Saved {} and got PID {}", theConcept.getCode(), theConcept.getId());
|
||||||
|
|
Loading…
Reference in New Issue