|
7 | 7 | import org.labkey.api.data.Container; |
8 | 8 | import org.labkey.api.data.ContainerManager; |
9 | 9 | import org.labkey.api.data.SimpleFilter; |
| 10 | +import org.labkey.api.data.Sort; |
10 | 11 | import org.labkey.api.data.TableInfo; |
11 | 12 | import org.labkey.api.data.TableSelector; |
12 | 13 | import org.labkey.api.exp.api.ExpData; |
@@ -137,7 +138,7 @@ private void verifySequenceDataPresent(Logger log) |
137 | 138 | { |
138 | 139 | log.info("verifying sequence data files present"); |
139 | 140 | TableInfo ti = SequenceAnalysisSchema.getTable(SequenceAnalysisSchema.TABLE_READ_DATA); |
140 | | - TableSelector ts = new TableSelector(ti); |
| 141 | + TableSelector ts = new TableSelector(ti, null, new Sort("container")); |
141 | 142 |
|
142 | 143 | log.info("Inspecting ReadData"); |
143 | 144 | List<ReadDataImpl> readDatas = ts.getArrayList(ReadDataImpl.class); |
@@ -202,13 +203,13 @@ else if (!d.getFile().exists()) |
202 | 203 | //also check analyses |
203 | 204 | log.info("Inspecting Analyses"); |
204 | 205 | TableInfo analysesTable = SequenceAnalysisSchema.getTable(SequenceAnalysisSchema.TABLE_ANALYSES); |
205 | | - TableSelector tsAnalyses = new TableSelector(analysesTable); |
| 206 | + TableSelector tsAnalyses = new TableSelector(analysesTable, null, new Sort("container")); |
206 | 207 | List<AnalysisModelImpl> analyses = tsAnalyses.getArrayList(AnalysisModelImpl.class); |
207 | 208 | i = 0; |
208 | 209 | for (AnalysisModelImpl m : analyses) |
209 | 210 | { |
210 | 211 | i++; |
211 | | - if (i % 500 == 0) |
| 212 | + if (i % 1000 == 0) |
212 | 213 | { |
213 | 214 | log.info("analysis " + i + " of " + analyses.size() + ". Current container: " + ContainerManager.getForId(m.getContainer()).getPath()); |
214 | 215 | } |
|
0 commit comments