Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Mondrian executes so many SQLs given a slicer? #1129

Open
sasakigao opened this issue Jun 12, 2019 · 2 comments
Open

Why Mondrian executes so many SQLs given a slicer? #1129

sasakigao opened this issue Jun 12, 2019 · 2 comments

Comments

@sasakigao
Copy link

Mondrian seems to run a lot of groupby sqls before getting the aggregation results, such as

select
    `t`.`year` as `c0`
from
    `table` as `t`
where
    UPPER(`t`.`c0`) = UPPER('1997')
group by
    `t`.`c0`
order by
    ISNULL(`c0`) ASC, `c0` ASC

When the slicer includes a number of values, like {[Time].[1997],[Time].[1998],[Time].[1999]}, Mondrian will execute a groupby sql for each of the values.

My mdx contains hundreds of values in one dimension, so it often costs too much on executing these sqls. Even retrieved from cache, they are still executed while querying the cache with the values directly seems more reasonable.
There anyone knows the reason? Thanks a lot.

@anis-ajmeri
Copy link

I also have this question. Is there any configuration or property in Mondrian to stop the queries which are executed before the final query?

@nhudinh2103
Copy link

Same to me? Can someone help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants