Logical order an MDX query is processed

亡梦爱人 提交于 2019-11-28 12:52:25

I would say:

  1. FROM (including potential subselects)
  2. WHERE
  3. SETs and MEMBER location in the WITH clause
  4. Build the list of tuples for all query axes (columns, rows, ...) in parallel, ignoring NON EMPTY and HAVING
  5. Cell values for all axis intersections
  6. Remove tuples from the axes as requested by NON EMPTY and HAVING for each axis.

By "member location" in step 3, I mean the information that the member exists at all, and in which hierarchy and possibly under which parent it is located in the hierarchy. This does not involve the member definition expression. That will be evaluated in step 5 and 6. But the location is needed for step 4.

The parallel evaluation of the axes means that there is no relation between axes in the query processing.

Also note that this is the conceptual view. Physically, step 6 may happen during the processing of step 4, or whatever the optimizer decides is a proper execution order, as long as the result would be the same.

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