Changeset 6972
- Timestamp:
- 11/08/11 15:25:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Prepare Hive Database.sql
r6958 r6972 232 232 GO 233 233 234 -- ============================================= 235 -- Author: cneumuel 236 -- Create date: 17.05.2011 237 -- Description: Writes the execution times of deleted Tasks into DeletedJobStats to ensure correct statistics 238 -- ============================================= 239 --CREATE TRIGGER [dbo].[tr_DeletedJobStats] ON [dbo].[Task] AFTER DELETE AS 240 --BEGIN 241 242 243 --END 244 --GO 234 -- ============================================================ 235 -- Description: Create indices to speed up execution of queries 236 -- ============================================================ 237 238 -- speed up joins between Job and Task 239 CREATE NONCLUSTERED INDEX [TaskJobIdIndex] 240 ON [dbo].[Task] ([JobId]) 241 INCLUDE ([TaskId],[TaskState],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[CoresNeeded],[MemoryNeeded],[IsParentTask],[FinishWhenChildJobsFinished],[Command],[IsPrivileged]) 242 GO 243 244 -- this is an index to speed up the GetWaitingTasks() method 245 CREATE NONCLUSTERED INDEX [TaskGetWaitingTasksIndex] 246 ON [dbo].[Task] ([TaskState],[IsParentTask],[FinishWhenChildJobsFinished],[CoresNeeded],[MemoryNeeded]) 247 INCLUDE ([TaskId],[ExecutionTimeMs],[LastHeartbeat],[ParentTaskId],[Priority],[Command],[JobId],[IsPrivileged]) 248 GO
Note: See TracChangeset
for help on using the changeset viewer.