Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/13 10:30:43 (11 years ago)
Author:
pfleck
Message:

#2063:
As suggested by gkronber, added user to primary key again in ClientFact table and added a 'NULL'-user in the DimUser table instead.

File:
1 edited

Legend:

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

    r9541 r9546  
    233233    [ClientId]              UNIQUEIDENTIFIER NOT NULL,
    234234    [Time]                  DATETIME         NOT NULL,
    235     [UserId]                UNIQUEIDENTIFIER NULL,
     235    [UserId]                UNIQUEIDENTIFIER NOT 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),
     248    CONSTRAINT [PK_FactClientInfo] PRIMARY KEY CLUSTERED ([ClientId] ASC, [Time] ASC, [UserId] 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.