Merge pull request #575 from joelsch/large-codesystem-persistence-fix

Revise saveConcept method to use save() instead of saveAndFlush()
This commit is contained in:
James Agnew 2017-03-17 06:52:57 -04:00 committed by GitHub
commit 899ed2567f
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());