Add index on CONCEPT_PID on TRM_CONCEPT_PROPERTY to optimize a full-reindex of lucene index which can be needed when running in a docker container where the lucene files are discarded on redeploy. (#1637)
Co-authored-by: James Agnew <jamesagnew@gmail.com>
This commit is contained in:
parent
e780a8402e
commit
262a964a31
|
@ -37,6 +37,7 @@ import static org.apache.commons.lang3.StringUtils.length;
|
|||
@Entity
|
||||
@Table(name = "TRM_CONCEPT_PROPERTY", uniqueConstraints = {
|
||||
}, indexes = {
|
||||
@Index(name = "IDX_CONCEPTPROP_CONCEPTPID", columnList = "CONCEPT_PID")
|
||||
})
|
||||
public class TermConceptProperty implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -244,7 +244,10 @@ public class HapiFhirJpaMigrationTasks extends BaseMigrationTasks<VersionEnum> {
|
|||
protected void init420() { // 20191015 - 20200217
|
||||
Builder version = forVersion(VersionEnum.V4_2_0);
|
||||
|
||||
// TermValueSetConceptDesignation
|
||||
// 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");
|
||||
searchTable.dropIndex("20200203.1", "IDX_SEARCH_LASTRETURNED");
|
||||
|
|
Loading…
Reference in New Issue