-
Notifications
You must be signed in to change notification settings - Fork 3
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
possible filter and components query needlessly fires twice - and takes a very long time #1658
Comments
Hey @Rdataflow, thanks for identifying and reporting the issue. I am not 100% sure it's a regression from before the refactor of the query, as there are some specific reasons we need to have the flow mentioned as problematic above:
To sum up, it looks like it's the left panel that has some duplicated logic, but in fact first queries are set when initializing chart from cube and are not related to the queries we send from the left filter panel. I wouldn't treat this as a bug, as we introduced this behavior in order to make sure we show a "correct" chart as soon as it loads, and prevent showing no-data screen initially, followed by a reload of queries only afterwards. I modified the logic a bit to re-use the preview query in #1697. As a con, it always fires possible filters query, contrary to conditional firing in the old logic. Let me know if that explains and improves situation :) |
After discussing with @Rdataflow, we'll not merge #1697, but rather exclude non-key dimensions from the most expensive query fired when initializing a chart from cube. The problem with #1697 is that we can no longer easily determine "preferred dimension values", which means that e.g. when opening an NFI: Change cube, we do not select Schweiz anymore (as the top-root hierarchy value), but rather Fribourg. |
@bprusinowski can this issue be closed (as the PR will not be merged), or should we keep it open? |
Hi @sosiology, I think there's still one thing we should improve connected to this issue (excluding non-key dimension from the most expensive query). I'd keep it open for now 👍 |
got it! Thanks @bprusinowski |
To Do
@bprusinowski very similar results are fetched twice - most of which aren't even needed (non-key) - thanks for taking a look
Describe the bug
The rework of #1487 shows a tiny glitch endin up in a big difference on milk cubes.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Actual behavior
Screenshots or video
Environment (please complete the following information):
Additional context
the query needlessly re-asking for information over all dimensions
get.components.expensive.txt
The text was updated successfully, but these errors were encountered: