This PR optimizes performance of initializing charts based on cubes with non-key dimensions by limiting these dimensions and measures selection to only include key dimensions.
We do it by re-using DataCubePreview query, which in most of the cases is loaded and cached before starting a new chart that loads components metadata, so we know which dimension is a key dimension.
Closes #1658
This PR optimizes performance of initializing charts based on cubes with non-key dimensions by limiting these dimensions and measures selection to only include key dimensions.
We do it by re-using
DataCubePreview
query, which in most of the cases is loaded and cached before starting a new chart that loads components metadata, so we know which dimension is a key dimension.