Changeset 98536 in vbox
- Timestamp:
- Feb 10, 2023 5:39:28 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 155813
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/cgi/status.py
r98103 r98536 284 284 # Get the data. 285 285 # 286 # Note! We're not joining on TestBoxesWithStrings.idTestBox = 287 # TestSets.idGenTestBox here because of indexes. This is 288 # also more consistent with the rest of the query. 286 # - The first part of the select is about fetching all finished tests 287 # for last cHoursBack hours 288 # 289 # - The second part is fetching all tests which isn't done. (Both old 290 # (running more than cHoursBack) and fresh (less than cHoursBack) ones 291 # because we want to know if there's a hanging tests together with 292 # currently running). 293 # 294 # - There are also testsets without status at all, likely because disabled 295 # testboxes still have an assigned testsets. 296 # 297 # Note! We're not joining on TestBoxesWithStrings.idTestBox = TestSets.idGenTestBox 298 # here because of indexes. This is also more consistent with the 299 # rest of the query. 300 # 289 301 # Note! The original SQL is slow because of the 'OR TestSets.tsDone' 290 302 # part, using AND and UNION is significatly faster because … … 295 307 return False; 296 308 297 #298 # some comments regarding select below:299 # first part is about fetching all finished tests for last cHoursBack hours300 # second part is fetching all tests which isn't done301 # both old (running more than cHoursBack) and fresh (less than cHoursBack) ones302 # 'cause we want to know if there's a hanging tests together with currently running303 #304 # there's also testsets without status at all, likely because disabled testboxes still have an assigned testsets305 #306 309 oDb.execute(''' 307 310 ( SELECT TestBoxesWithStrings.sName, … … 350 353 AND SchedGroupNames.idTestBox = TestBoxesWithStrings.idTestBox 351 354 ) 352 ''', (cHoursBack, cHoursBack,));355 ''', (cHoursBack, )); 353 356 354 357
Note:
See TracChangeset
for help on using the changeset viewer.