This commit is contained in:
jamesagnew 2020-05-23 17:16:19 -04:00
parent 262a964a31
commit 9192d41448
3 changed files with 13 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
type: add
issue: 1637
title: "An index has been added on the TRM_CONCEPT table. This index was previously missing, meaning that rebuilding large
code systems took an abnormally long amount of time. Thanks to Jacob Stampe Mikkelsen for the pull request!"

View File

@ -180,6 +180,9 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
.addCalculator("SP_VALUE_HIGH_DATE_ORDINAL", t -> ResourceIndexedSearchParamDate.calculateOrdinalValue(t.getDate("SP_VALUE_HIGH")))
.setColumnName("SP_VALUE_LOW_DATE_ORDINAL") //It doesn't matter which of the two we choose as they will both be null.
);
// TRM_CONCEPT_PROPERTY
version.onTable("TRM_CONCEPT_PROPERTY").addIndex("20200523.1", "IDX_CONCEPTPROP_CONCEPTPID").unique(false).withColumns("CONCEPT_PID");
}
/**
@ -244,9 +247,6 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
protected void init420() { // 20191015 - 20200217
Builder version = forVersion(VersionEnum.V4_2_0);
// TRM_CONCEPT_PROPERTY
version.onTable("TRM_CONCEPT_PROPERTY").addIndex("20191217.1", "IDX_CONCEPTPROP_CONCEPTPID").unique(false).withColumns("CONCEPT_PID");
// TermValueSetConceptDesignation
version.onTable("TRM_VALUESET_C_DESIGNATION").dropIndex("20200202.1", "IDX_VALUESET_C_DSGNTN_VAL").failureAllowed();
Builder.BuilderWithTableName searchTable = version.onTable("HFJ_SEARCH");

View File

@ -633,6 +633,11 @@
<id>ibacher</id>
<name>Ian</name>
</developer>
<developer>
<id>jasmdk</id>
<name>Jacob Stampe Mikkelsen</name>
<organization>Systematik A/S</organization>
</developer>
</developers>
<licenses>