Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

Calculation view slow when quering only dimension

$
0
0

Hi,

 

 

I have a calculation view (MESDATA) with a star-join and 6 calculation view dimensions.

10-08-2015 15-51-49.png

When i try to create a list of values(LOV), I do a distinct search on it the CV which takes forever as the query goes through the whole model with out any filters. 

SELECTDISTINCT"CITY_NAME"FROM"_SYS_BIC"."TMP/MESDATA_CV"

 

The explain plan shows it very good.

10-08-2015 16-13-31.png

To avoid this i changed the link to right outer join "LOCATION"

Now the query only looks at the LOCATION_CVD and works very quickly.

10-08-2015 16-16-16.png

I theb changed the other dimensions to right outer join as well but now all dimensions go throught the entire model again.

Including "CITY_NAME" which just worked before.

 

I then tried the same with another dimension at the behaviour is consitent.

If I have one dimension as right outer join the query will only query that dimension.

 

When 2 or more are set to right outer the whole model is queried.

 

Does any one know how i can get the model to only query the parts that are in the query ?

 

Best Regards

- Rasmus


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>