Changeset 12551 for branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts
- Timestamp:
- 06/30/15 13:12:07 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess
- Property svn:mergeinfo changed
/branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.Services.Hive.DataAccess (added) merged: 12031 /trunk/sources/HeuristicLab.Services.Hive.DataAccess (added) merged: 12524
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql
r12516 r12551 217 217 [ResourceGroupId] UNIQUEIDENTIFIER NULL, 218 218 [ResourceGroup2Id] UNIQUEIDENTIFIER NULL, 219 220 219 [GroupName] VARCHAR (MAX) NULL, 220 [GroupName2] VARCHAR (MAX) NULL, 221 221 CONSTRAINT [PK_DimClient] PRIMARY KEY CLUSTERED ([Id] ASC) 222 222 ); … … 238 238 ); 239 239 CREATE TABLE [statistics].[FactClientInfo] ( 240 [ClientId] UNIQUEIDENTIFIER NOT NULL, 241 [Time] DATETIME NOT NULL, 242 [UserId] UNIQUEIDENTIFIER NOT NULL, 243 [NumUsedCores] INT NOT NULL, 244 [NumTotalCores] INT NOT NULL, 245 [UsedMemory] INT NOT NULL, 246 [TotalMemory] INT NOT NULL, 247 [CpuUtilization] FLOAT (53) NOT NULL, 248 [SlaveState] VarChar(15) NOT NULL, 249 [TotalTimeIdle] FLOAT (53) NOT NULL, 250 [TotalTimeOffline] FLOAT (53) NOT NULL, 251 [TotalTimeUnavailable] FLOAT (53) NOT NULL, 240 [ClientId] UNIQUEIDENTIFIER NOT NULL, 241 [Time] DATETIME NOT NULL, 242 [UserId] UNIQUEIDENTIFIER NOT NULL, 243 [NumUsedCores] INT NOT NULL, 244 [NumTotalCores] INT NOT NULL, 245 [UsedMemory] INT NOT NULL, 246 [TotalMemory] INT NOT NULL, 247 [CpuUtilization] FLOAT (53) NOT NULL, 248 [SlaveState] VarChar(15) NOT NULL, 249 [IdleTime] INT NOT NULL, 250 [OfflineTime] INT NOT NULL, 251 [UnavailableTime] INT NOT NULL, 252 [IsAllowedToCalculate] BIT NOT NULL, 252 253 CONSTRAINT [PK_FactClientInfo] PRIMARY KEY CLUSTERED ([ClientId] ASC, [Time] ASC, [UserId] ASC), 253 254 CONSTRAINT [FK_FactClientInfo_DimTime] FOREIGN KEY ([Time]) REFERENCES [statistics].[DimTime] ([Time]), … … 255 256 CONSTRAINT [FK_FactClientInfo_DimUser] FOREIGN KEY ([UserId]) REFERENCES [statistics].[DimUser] ([UserId]) 256 257 ); 258 257 259 CREATE TABLE [statistics].[FactTask] ( 258 [TaskId]UNIQUEIDENTIFIER NOT NULL,259 [CalculatingTime] FLOAT (53)NOT NULL,260 [WaitingTime] FLOAT (53)NOT NULL,261 [TransferTime] FLOAT (53)NOT NULL,262 [NumCalculationRuns]INT NOT NULL,263 [NumRetries]INT NOT NULL,264 [CoresRequired]INT NOT NULL,265 [MemoryRequired]INT NOT NULL,266 [Priority]INT NOT NULL,267 [LastClientId]UNIQUEIDENTIFIER NULL,268 [JobId]UNIQUEIDENTIFIER NOT NULL,269 [StartTime]DATETIME NULL,270 [EndTime]DATETIME NULL,271 [TaskState]VARCHAR (30) NOT NULL,272 [Exception] VARCHAR (MAX)NULL,273 [InitialWaitingTime] FLOAT (53)NULL,274 275 276 260 [TaskId] UNIQUEIDENTIFIER NOT NULL, 261 [CalculatingTime] INT NOT NULL, 262 [WaitingTime] INT NOT NULL, 263 [TransferTime] INT NOT NULL, 264 [NumCalculationRuns] INT NOT NULL, 265 [NumRetries] INT NOT NULL, 266 [CoresRequired] INT NOT NULL, 267 [MemoryRequired] INT NOT NULL, 268 [Priority] INT NOT NULL, 269 [LastClientId] UNIQUEIDENTIFIER NULL, 270 [JobId] UNIQUEIDENTIFIER NOT NULL, 271 [StartTime] DATETIME NULL, 272 [EndTime] DATETIME NULL, 273 [TaskState] VARCHAR (30) NOT NULL, 274 [Exception] VARCHAR (MAX) NULL, 275 [InitialWaitingTime] INT NULL, 276 CONSTRAINT [PK_FactTask] PRIMARY KEY CLUSTERED ([TaskId] ASC), 277 CONSTRAINT [FK_FactTask_DimClient] FOREIGN KEY ([LastClientId]) REFERENCES [statistics].[DimClient] ([Id]), 278 CONSTRAINT [FK_FactTask_DimJob] FOREIGN KEY ([JobId]) REFERENCES [statistics].[DimJob] ([JobId]) 277 279 ); 278 280
Note: See TracChangeset
for help on using the changeset viewer.