Any benefits for using ViewConstruct in TI?
Posted: Thu Aug 25, 2016 1:54 am
Hi all,
I have been receiving conflicting views on whether using ViewConstruct with MTQ enabled in a TI will speed up the processing of a TI when the view is acting as a datasource.
The following link seems to imply that:
https://www-01.ibm.com/support/docview. ... wg21960495
I also searched the forum and a post by kangkc that he tried the above when MTQ was first introduced and found that it has no impact of the processing time when the TI processes script in Data tab. Unfortunately, there is no further update of his testing.
The idea of using ViewConstruct together with MTQ in Prolog is so that when the main TI starts the script in Data tab,the view is already cached earlier. And ViewConstruct will complete faster in Prolog due to MTQ. So the assumption is that script in Data tab will use cached Stargate view instead of querying cell by cell on demand.
Questions:
1. It seems more info that I came across state to call ViewConstruct through a sub-TI in the Prolog of the main TI. How is this better that simply directly calling ViewConstruct in the Prolog after the temp view and subs have been defined as per usual practice for a TI that uses view as source?
2. Does TI leverage on Stargate view/cached view in Data tab when a view is its datasource? If true, then it makes sense to add ViewConstruct in Prolog. Even in the absence of ViewConstruct, assuming a user had earlier made a query on the similar area in the cube, TI should benefit from this action since the view is cached.
We assume VMM has been set to a suitable value to cache the view.
Look forward to your reply!
I have been receiving conflicting views on whether using ViewConstruct with MTQ enabled in a TI will speed up the processing of a TI when the view is acting as a datasource.
The following link seems to imply that:
https://www-01.ibm.com/support/docview. ... wg21960495
I also searched the forum and a post by kangkc that he tried the above when MTQ was first introduced and found that it has no impact of the processing time when the TI processes script in Data tab. Unfortunately, there is no further update of his testing.
The idea of using ViewConstruct together with MTQ in Prolog is so that when the main TI starts the script in Data tab,the view is already cached earlier. And ViewConstruct will complete faster in Prolog due to MTQ. So the assumption is that script in Data tab will use cached Stargate view instead of querying cell by cell on demand.
Questions:
1. It seems more info that I came across state to call ViewConstruct through a sub-TI in the Prolog of the main TI. How is this better that simply directly calling ViewConstruct in the Prolog after the temp view and subs have been defined as per usual practice for a TI that uses view as source?
2. Does TI leverage on Stargate view/cached view in Data tab when a view is its datasource? If true, then it makes sense to add ViewConstruct in Prolog. Even in the absence of ViewConstruct, assuming a user had earlier made a query on the similar area in the cube, TI should benefit from this action since the view is cached.
We assume VMM has been set to a suitable value to cache the view.
Look forward to your reply!