You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: experiment/src/org/labkey/experiment/api/ExperimentServiceImpl.java
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1263,11 +1263,14 @@ public void indexDataClass(ExpDataClassImpl dataClass, SearchService.TaskIndexin
1263
1263
if (table == null)
1264
1264
return;
1265
1265
1266
-
// Index the data class if it has never been indexed OR it has changed since it was last indexed
1266
+
indexDataClassData(dataClass, q);
1267
+
1268
+
// GitHub Issue 783: Server lockup when updating data class domain design
1269
+
// Index DataClass after data indexing, to avoid holding locks on exp.DataClass table for too long
1267
1270
SQLFragmentsql = newSQLFragment("SELECT * FROM ")
1268
1271
.append(getTinfoDataClass(), "dc")
1269
1272
.append(" WHERE dc.LSID = ?").add(dataClass.getLSID())
1270
-
.append(" AND (dc.lastIndexed IS NULL OR dc.lastIndexed < ?)")
1273
+
.append(" AND (dc.lastIndexed IS NULL OR dc.lastIndexed < ?)")// Index the data class if it has never been indexed OR it has changed since it was last indexed
Copy file name to clipboardExpand all lines: experiment/src/org/labkey/experiment/api/SampleTypeServiceImpl.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,10 @@ public void indexSampleType(ExpSampleType sampleType, SearchService.TaskIndexing
331
331
return;
332
332
333
333
queue.addRunnable((q) -> {
334
+
indexSampleTypeMaterials(sampleType, q);
335
+
336
+
// GitHub Issue 783: Server lockup when updating data class domain design
337
+
// Index MaterialSource after materials indexing, to avoid holding locks on exp.MaterialSource table for too long
334
338
// Index all ExpMaterial that have never been indexed OR where either the ExpSampleType definition or ExpMaterial itself has changed since last indexed
335
339
SQLFragmentsql = newSQLFragment("SELECT * FROM ")
336
340
.append(getTinfoMaterialSource(), "ms")
@@ -345,8 +349,6 @@ public void indexSampleType(ExpSampleType sampleType, SearchService.TaskIndexing
0 commit comments