Changeset 56789 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jul 3, 2015 3:46:07 PM (10 years ago)
- Location:
- trunk/src/VBox/ValidationKit/testmanager/db
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/db/TestManagerDatabaseInit.pgsql
r56295 r56789 128 128 PRIMARY KEY (uid, tsExpire) 129 129 ); 130 CREATE INDEX UsersLoginNameIdx ON Users ( tsExpire, sLoginName);130 CREATE INDEX UsersLoginNameIdx ON Users (sLoginName, tsExpire DESC); 131 131 132 132 … … 410 410 PRIMARY KEY (idTestCase, tsExpire, sArgs) 411 411 ); 412 CREATE INDEX TestCaseArgsLookupIdx ON TestCaseArgs (idTestCase, tsExpire , tsEffective);412 CREATE INDEX TestCaseArgsLookupIdx ON TestCaseArgs (idTestCase, tsExpire DESC, tsEffective ASC); 413 413 414 414 … … 515 515 PRIMARY KEY (idTestGroup, tsExpire) 516 516 ); 517 CREATE INDEX TestGroups_id_index ON TestGroups (idTestGroup, tsExpire , tsEffective);517 CREATE INDEX TestGroups_id_index ON TestGroups (idTestGroup, tsExpire DESC, tsEffective ASC); 518 518 519 519 … … 834 834 CHECK (fCpuNestedPaging IS NULL OR (fCpuNestedPaging <> TRUE OR fCpuHwVirt = TRUE)) 835 835 ); 836 CREATE UNIQUE INDEX TestBoxesUuidIdx ON TestBoxes (uuidSystem, tsExpire); 836 CREATE UNIQUE INDEX TestBoxesUuidIdx ON TestBoxes (uuidSystem, tsExpire DESC); 837 CREATE INDEX TestBoxesExpireEffectiveIdx ON TestBoxes (tsExpire DESC, tsEffective ASC); 837 838 838 839 … … 1046 1047 PRIMARY KEY (idBlacklisting, tsExpire) 1047 1048 ); 1049 CREATE INDEX BuildBlacklistIdx ON BuildBlacklist (iLastRevision DESC, iFirstRevision ASC, sProduct, sBranch, 1050 tsExpire DESC, tsEffective ASC); 1048 1051 1049 1052 --- @table BuildCategories … … 1311 1314 CREATE INDEX TestResultsSetIdx ON TestResults (idTestSet, idStrName, idTestResult); 1312 1315 CREATE INDEX TestResultsParentIdx ON TestResults (idTestResultParent); 1313 -- The TestResultsNameIdx is for speeding up the result graph & reporting code. 1314 CREATE INDEX TestResultsNameIdx ON TestResults (idStrName, idTestResult, tsCreated); 1316 -- The TestResultsNameIdx and TestResultsNameIdx2 are for speeding up the result graph & reporting code. 1317 CREATE INDEX TestResultsNameIdx ON TestResults (idStrName, tsCreated DESC); 1318 CREATE INDEX TestResultsNameIdx2 ON TestResults (idTestResult, idStrName); 1315 1319 1316 1320 ALTER TABLE TestResultFailures … … 1546 1550 CREATE INDEX TestSetsTestCaseIdx ON TestSets (idTestCase, idTestResult); 1547 1551 CREATE INDEX TestSetsTestVarIdx ON TestSets (idTestCaseArgs, idTestResult); 1548 --- The TestSet CreatedDoneis for testbox results, graph options and such.1549 CREATE INDEX TestSets CreatedDoneIdx ON TestSets (tsCreated, tsDone);1552 --- The TestSetsDoneCreatedBuildCatIdx is for testbox results, graph options and such. 1553 CREATE INDEX TestSetsDoneCreatedBuildCatIdx ON TestSets (tsDone DESC NULLS FIRST, tsCreated ASC, idBuildCategory); 1550 1554 --- For graphs. 1551 CREATE INDEX TestSetsGraphBoxIdx ON TestSets (idTestBox, tsCreated , tsDone, idBuildCategory, idTestCase);1555 CREATE INDEX TestSetsGraphBoxIdx ON TestSets (idTestBox, tsCreated DESC, tsDone ASC NULLS LAST, idBuildCategory, idTestCase); 1552 1556 1553 1557 ALTER TABLE TestResults ADD FOREIGN KEY (idTestSet) REFERENCES TestSets(idTestSet) MATCH FULL; … … 1756 1760 PRIMARY KEY (idSchedGroup, idItem) 1757 1761 ); 1758 1762 CREATE INDEX SchedQueuesItemIdx ON SchedQueues(idItem); 1763 CREATE INDEX SchedQueuesSchedGroupIdx ON SchedQueues(idSchedGroup); 1764
Note:
See TracChangeset
for help on using the changeset viewer.