Credit for #1637
This commit is contained in:
parent
262a964a31
commit
9192d41448
|
@ -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!"
|
|
@ -180,6 +180,9 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
||||||
.addCalculator("SP_VALUE_HIGH_DATE_ORDINAL", t -> ResourceIndexedSearchParamDate.calculateOrdinalValue(t.getDate("SP_VALUE_HIGH")))
|
.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.
|
.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
|
protected void init420() { // 20191015 - 20200217
|
||||||
Builder version = forVersion(VersionEnum.V4_2_0);
|
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
|
// TermValueSetConceptDesignation
|
||||||
version.onTable("TRM_VALUESET_C_DESIGNATION").dropIndex("20200202.1", "IDX_VALUESET_C_DSGNTN_VAL").failureAllowed();
|
version.onTable("TRM_VALUESET_C_DESIGNATION").dropIndex("20200202.1", "IDX_VALUESET_C_DSGNTN_VAL").failureAllowed();
|
||||||
Builder.BuilderWithTableName searchTable = version.onTable("HFJ_SEARCH");
|
Builder.BuilderWithTableName searchTable = version.onTable("HFJ_SEARCH");
|
||||||
|
|
5
pom.xml
5
pom.xml
|
@ -633,6 +633,11 @@
|
||||||
<id>ibacher</id>
|
<id>ibacher</id>
|
||||||
<name>Ian</name>
|
<name>Ian</name>
|
||||||
</developer>
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<id>jasmdk</id>
|
||||||
|
<name>Jacob Stampe Mikkelsen</name>
|
||||||
|
<organization>Systematik A/S</organization>
|
||||||
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
|
|
Loading…
Reference in New Issue