Skip to content

Commit 9a4ac54

Browse files
committed
Skip GO tables for now
1 parent 5562fa1 commit 9a4ac54

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

protein/src/org/labkey/protein/ProteinModule.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,15 @@ public void beforeSchema()
140140
GoLoader.dropGoIndexes();
141141
}
142142

143+
@Override
144+
public List<TableInfo> getTablesToCopy()
145+
{
146+
// Temporary: we've proven we can copy the GO tables, but they take a long time; skip them for now. TODO: Remove this override for production testing
147+
return super.getTablesToCopy().stream()
148+
.filter(tableInfo -> !tableInfo.getName().startsWith("Go"))
149+
.toList();
150+
}
151+
143152
@Override
144153
public @Nullable FieldKey getContainerFieldKey(TableInfo sourceTable)
145154
{
@@ -154,7 +163,7 @@ public void beforeSchema()
154163
public void afterSchema()
155164
{
156165
new SqlExecutor(getSchema()).execute("ALTER TABLE prot.Organisms ADD CONSTRAINT FK_ProtOrganisms_ProtIdentifiers FOREIGN KEY (IdentId) REFERENCES prot.Identifiers (IdentId)");
157-
GoLoader.dropGoIndexes();
166+
GoLoader.createGoIndexes();
158167
}
159168
});
160169
}

0 commit comments

Comments
 (0)