Hello,
I have cube which is 350 MB in size ('Memory Used'), quite small. The cube is mostly fed from 4 source/assumption cube data and then multiplied by a volume.
When the server has been restarted the cube can take 10 minutes to open (i.e. not time for server to come up on restart, but time after double clicking on cube). Thereafter the cube will usually open instantly, although slowly when it feels like it. The cube performance is very quick once opened.
Whilst tyring to find a solution to make the cube open quicker I stumbled across 'Adding cube dependency'. I notice from the log file that the system runs TM1.Cube.Dependency for around 30 lines when I first open the cube.
Is this what is making / would this make the cube slow to open? Or is it not possible to tell?
If it is I understand that I can create a TI to run these dependencies before opening the cube. Would this TI only require running once for each server restart?
Really need to speed up the opening of this cube (and a few others), so if I'm talking rubbish above, then advice on what else to inspect would be greatly appreciated.
Pinpointing Slow Cube Opening - Cube Dependency?
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Pinpointing Slow Cube Opening - Cube Dependency?
So what you are telling us is that the cube actually has no data in it, it's full of dynamically calculated values. In TM1 those values are not going to get calculated until a user asks for them in a cube view or sheet. That's by design.ADW wrote:The cube is mostly fed from 4 source/assumption cube data and then multiplied by a volume.
That's because the values mentioned above are being calculated. If you want to speed up the opening of the cube you need to create a Default view for the cube in question that is much smaller than current one in existence.ADW wrote:When the server has been restarted the cube can take 10 minutes to open (i.e. not time for server to come up on restart, but time after double clicking on cube).
Once the values are calculated they are cached so that subsequent retrievals are much faster.ADW wrote:Thereafter the cube will usually open instantly, although slowly when it feels like it. The cube performance is very quick once opened.
Cube dependencies are an important topic but you're barking up the wrong tree for the problem above.ADW wrote:Whilst tyring to find a solution to make the cube open quicker I stumbled across 'Adding cube dependency'.
It's clear you have a limited understanding of the concepts in a RAM-based OLAP model. Suggest you spend some time reading the TM1 manuals.
- ADW
- Posts: 32
- Joined: Tue Jun 14, 2011 11:10 am
- OLAP Product: Cognos Express
- Version: 9.5
- Excel Version: 2010
- Location: Cheshire, England
Re: Pinpointing Slow Cube Opening - Cube Dependency?
Firstly thank you for your help and taking the time to respond.
Secondly, no need to be so patronising. Bit harsh that! (However great/amazing you are at understanding the concepts in a RAM-based OLAP modelling. Or how many TM1 manuals you may have read, or presumably written)
Secondly, no need to be so patronising. Bit harsh that! (However great/amazing you are at understanding the concepts in a RAM-based OLAP modelling. Or how many TM1 manuals you may have read, or presumably written)
-
- MVP
- Posts: 2836
- Joined: Tue Feb 16, 2010 2:39 pm
- OLAP Product: TM1, Palo
- Version: Beginning of time thru 10.2
- Excel Version: 2003-2007-2010-2013
- Location: Atlanta, GA
- Contact:
Re: Pinpointing Slow Cube Opening - Cube Dependency?
Really????? Apologies if you took offense (or should I say offence?) Whatever happened to that stiff upper lip? Seriously though, nothing harsh about letting you know you need to spend some time reading about TM1. Not understanding the concept of dynamic calculations, caching of results, etc. with TM1 will severely hamper your ability to do much anything of value development-wise.ADW wrote:Bit harsh that!
Probably should have stuck with this. BTW, where should I send your refund check?ADW wrote:Firstly thank you for your help and taking the time to respond.
-
- MVP
- Posts: 3698
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Pinpointing Slow Cube Opening - Cube Dependency?
Because cube dependencies get written to the message log at the end of rule evaluations many people assume (erroneously as Tomok pointed out) that setting the cube dependencies is somehow taking a lot of time. This is wrong, setting dependencies is near instant but it comes at the tail end of the evaluation of the calculated values and this is the time consuming action. When the server loads cube dependencies are only set initially for intercube feeders and dependencies are only set from the rules themselves when the rules are evaluated. By correctly setting the dependencies up front with TI you won't influence the time taken to load the view but what you can manage is the performance impact on other users as when the server encounters a new cube dependency while evaluating a rule it places a server wide lock (even with parallel interaction). Having the dependency already set avoids the locking impact on other users but it doesn't speed up the calculation.
To make the view open quickly (instantly) what you need to do is PRECALCULATE and CACHE the view using the ViewConstruct TI command. This is probably the secret sauce you were looking for. Note the cache is cleared whenever any data changes in the cube or in any cube where there is an "upstream" dependency which would mean the calculation needs to happen again and will take the same time. So to make the cube open quicker -precalculate view(s) with viewconstruct - make sure the default view and other public views are not excessively big or contain irrelevant data (like an "all years" consolidation) - look at improving the model design itself and make sure rules are efficient and not overfed, by the sounds of it you have some issues here.
For what it's worth ant at the risk or raising ire I think Tomok was a little harsh. But don't let that discourage you from reading up on how TM1 caching works, the advice was correct even if it could have done with more cushioning. This forum is probably the best place to find material.
To make the view open quickly (instantly) what you need to do is PRECALCULATE and CACHE the view using the ViewConstruct TI command. This is probably the secret sauce you were looking for. Note the cache is cleared whenever any data changes in the cube or in any cube where there is an "upstream" dependency which would mean the calculation needs to happen again and will take the same time. So to make the cube open quicker -precalculate view(s) with viewconstruct - make sure the default view and other public views are not excessively big or contain irrelevant data (like an "all years" consolidation) - look at improving the model design itself and make sure rules are efficient and not overfed, by the sounds of it you have some issues here.
For what it's worth ant at the risk or raising ire I think Tomok was a little harsh. But don't let that discourage you from reading up on how TM1 caching works, the advice was correct even if it could have done with more cushioning. This forum is probably the best place to find material.
-
- MVP
- Posts: 600
- Joined: Wed Aug 17, 2011 1:19 pm
- OLAP Product: TM1
- Version: 9.5.2 10.1 10.2
- Excel Version: 2003 2007
- Location: York, UK
Re: Pinpointing Slow Cube Opening - Cube Dependency?
If you like to read words on paper (which I do) you could do a lot worse than get hold of the IBM official guide to TM1 10.1 (mentioned favourably here http://www.tm1forum.com/viewtopic.php?f=20&t=6761). I found the section on calculation caching and "Stargate" views particularly useful.
-
- Site Admin
- Posts: 6645
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Pinpointing Slow Cube Opening - Cube Dependency?
Got nothing against words on dead trees for those so inclined.Duncan P wrote:If you like to read words on paper (which I do) you could do a lot worse than get hold of the IBM official guide to TM1 10.1 (mentioned favourably here http://www.tm1forum.com/viewtopic.php?f=20&t=6761). I found the section on calculation caching and "Stargate" views particularly useful.
But given that it's the year 2012, I have something against words which can only be found on dead trees, especially when coming from a supposed leading technology company.
But that having been said... it is actually available in Kindle format now. At a ridiculously inflated price (albeit a work-related and therefore tax deductible one) compared to any equivalent O'Reilly text I grant you (that would be the hand of McGraw-Hill at work, I expect; I rarely buy their titles for that reason), but at least it's available.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
- ADW
- Posts: 32
- Joined: Tue Jun 14, 2011 11:10 am
- OLAP Product: Cognos Express
- Version: 9.5
- Excel Version: 2010
- Location: Cheshire, England
Re: Pinpointing Slow Cube Opening - Cube Dependency?
Not really wanting to get into an arguement about this. Just that you shouldn't assume people know nothing, and have never done, or are not able to do, anything of value all because they asked a question where the answer was obvious to you.Not understanding the concept of dynamic calculations, caching of results, etc. with TM1 will severely hamper your ability to do much anything of value development-wise.
Lotsaram - thanks for your response. I think the model is good, with the cube opening very fast (now) after Tomok's suggestion.