Execution order of crossjoined hierarchies

佐手、 提交于 2019-12-12 01:50:04

问题


If I create a set of tuples via the following crossjoin which hierarchy is joined to which first?

hierA * hierB * hierC

If I know that the count of non empty members in A and B are significantly less than the count of members in C then should this influence the order?


回答1:


It depends on the execution system used, i.e. how crossjoining on axis is optimized by compiler.

Anyway, you will get real boost only if you first reduce cube size with subselect - it will prevent crossjoining non-matching points:

select
 { [Measures].[X] } on 0,
 { [DimA].[A] * [DimB].[B] } on 1
From ( 
             select { [DimB].[B].members}   on 0 
             from CubeA
           )


来源:https://stackoverflow.com/questions/28098346/execution-order-of-crossjoined-hierarchies

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!