Method To Archive cube data
Posted: Fri Jan 21, 2011 8:10 pm
Hi Team,
There is a requirement to archive cube data - older than 5 years. Presently X.cub file size is 3.0 GB. Seeking for a better advise to achieve this.
The cube X has a dimension 'Week', which has elements like week1, week2, week3 ...week52. and elements rolls up to 'All weeks'.
My requirement is to take the sum of all the elements data and push it against the last week (Say week52) in the cube and zeroout the rest of the week.
I have done it by the following steps :-
1. Created 2 views inside Prolog tab - i. Main view , ii. ZeroOut View (Excluding last week)
2. Typed inside Data tab
i. Condition to process only records having last week.
ii. Value=CellGetN('X', ...,....,....,...'All Weeks');
iii. CellPutN(Value,'X',...,....,.....,.....,'Week52');
3. Inside Epilog tab
Viewzerout function.
Ran the process :-
In first execution,view skip zeroes option was turned on (By default). I found It worked partially. It had worked only for those records which have data (NOT ZERO) for the last week. Those departments which have zero figures for last week was not overwritten with the all weeks data.
Afterwards I used ViewExtractSkipZeroesSet function to turn off skip zeroes option and executed the process. This time I got success.
But the problem over there is it took around 2 hrs. to complete the process where as in first time process was completed in 6-8 Mins.
Do you guys have any better solution to achieve this requirement expeditiously ?
There is a requirement to archive cube data - older than 5 years. Presently X.cub file size is 3.0 GB. Seeking for a better advise to achieve this.
The cube X has a dimension 'Week', which has elements like week1, week2, week3 ...week52. and elements rolls up to 'All weeks'.
My requirement is to take the sum of all the elements data and push it against the last week (Say week52) in the cube and zeroout the rest of the week.
I have done it by the following steps :-
1. Created 2 views inside Prolog tab - i. Main view , ii. ZeroOut View (Excluding last week)
2. Typed inside Data tab
i. Condition to process only records having last week.
ii. Value=CellGetN('X', ...,....,....,...'All Weeks');
iii. CellPutN(Value,'X',...,....,.....,.....,'Week52');
3. Inside Epilog tab
Viewzerout function.
Ran the process :-
In first execution,view skip zeroes option was turned on (By default). I found It worked partially. It had worked only for those records which have data (NOT ZERO) for the last week. Those departments which have zero figures for last week was not overwritten with the all weeks data.
Afterwards I used ViewExtractSkipZeroesSet function to turn off skip zeroes option and executed the process. This time I got success.
But the problem over there is it took around 2 hrs. to complete the process where as in first time process was completed in 6-8 Mins.
Do you guys have any better solution to achieve this requirement expeditiously ?