简体   繁体   English

数据仓库拆分维度

[英]Data warehouse split dimension

In our data warehouse we have 6 customer groups. 在我们的数据仓库中,我们有6个客户组。 Each group has between 5000 to 10000 customers. 每个组有5000到10000个客户。

Our star schema: 我们的星图:

dimCustomer               fact
-----------               ------------
CustomerKey               CustomerKey
CustomerName              Measure 
CustomerGroupKey
CustomerGroup

We often query for customer group only. 我们通常只查询客户群。 Can I add an additional dimension: 我可以添加其他尺寸:

    dimCustomer               fact                  dimCustomerGroup
    -----------               ------------          --------------
    CustomerKey               CustomerKey           CustomerGroupKey
    CustomerName              CustomerGroupKey      CustomerGroup
    CustomerGroupKey          Measure
    CustomerGroup

Is this possible in Microsoft SQL Server and also in SSAS cubes? 在Microsoft SQL Server和SSAS多维数据集中都可能吗?

I would add the customergroup as an attribute and hierarchy on the customer dimension as it's clearly a property of the customer. 我将customergroup添加为客户维度的属性和层次结构,因为它显然是客户的属性。

If you add some attribute relationships inside the dimension it should be helping your performance . 如果在维内添加一些属性关系 ,则应该有助于提高性能
If you create it as a new dimension the query processor will really need to execute the nonempty, if it's a dimension attribute with an attribute relation it can use the bitmap index to determine if the results will be empty or not. 如果将其创建为新维度,则查询处理器将确实需要执行非空值,如果它是具有属性关系的维度属性,则可以使用位图索引来确定结果是否为空。 Since you don't have that many groups it would be extremely beneficial. 由于您没有那么多小组,这将是非常有益的。

As you state it's queried on very often I think this is the way to go. 正如您所说的,它经常被查询,我认为这是要走的路。

I don't see what benefit you would get from adding an extra dimension. 我看不到添加额外的尺寸会带来什么好处。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM