Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/13 17:03:43 (12 years ago)
Author:
pfleck
Message:

#2063:
UserId in ClientInfo fact table is nullable. UserId is removed from primary key therefore.
StatisticsGenerator insert new ClientInfo into fact table.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.DataAccess/3.3/SQL Scripts/Initialize Hive Database.sql

    r9538 r9541  
    233233    [ClientId]              UNIQUEIDENTIFIER NOT NULL,
    234234    [Time]                  DATETIME         NOT NULL,
    235     [UserId]                UNIQUEIDENTIFIER NOT NULL,
     235    [UserId]                UNIQUEIDENTIFIER NULL,
    236236    [NumUsedCores]          INT              NOT NULL,
    237237    [NumTotalCores]         INT              NOT NULL,
     
    246246    [TotalTimeOffline]      FLOAT (53)       NOT NULL,
    247247    [TotalTimeUnavailable]  FLOAT (53)       NOT NULL,
    248     CONSTRAINT [PK_FactClientInfo] PRIMARY KEY CLUSTERED ([ClientId] ASC, [Time] ASC, [UserId] ASC),
     248    CONSTRAINT [PK_FactClientInfo] PRIMARY KEY CLUSTERED ([ClientId] ASC, [Time] ASC),
    249249    CONSTRAINT [FK_FactClientInfo_DimTime] FOREIGN KEY ([Time]) REFERENCES [statistics].[DimTime] ([Time]),
    250250    CONSTRAINT [FK_FactClientInfo_DimClient] FOREIGN KEY ([ClientId]) REFERENCES [statistics].[DimClient] ([Id]),
Note: See TracChangeset for help on using the changeset viewer.