TI to load cube in 9.0?

Post Reply
Eeyore
Posts: 6
Joined: Wed Mar 04, 2009 9:32 pm
OLAP Product: TM1
Version: 9.0 SP3 64-bit
Excel Version: 2003

TI to load cube in 9.0?

Post by Eeyore »

There is a CubeUnload TI function in ver 9.0, but no CubeLoad counterpart. Is there a simple way to trigger an unloaded cube to reload using a TI process? I want to setup the unload/reload in a chore to run after hours. Thanks.
User avatar
wissew
Posts: 54
Joined: Tue Jun 17, 2008 7:24 pm
OLAP Product: TM1
Version: 9.5.2; 10.2.2; 11
Excel Version: 2003 SP3 - 2013
Location: Beaverton, OR

Re: TI to load cube in 9.0?

Post by wissew »

If you have a rule on the cube you and a rule worksheet you can use RuleLoadFromFile to load the cube to memory. See the help files for the syntex.

I'm quite curiuos as to why you are unloading the cube in the process.

Wes
User avatar
Steve Rowe
Site Admin
Posts: 2455
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: TI to load cube in 9.0?

Post by Steve Rowe »

I think there is a ViewConstruct function that will reload the cube too, depends what you want todo. Any reference to the cube should I think reload it.
Technical Director
www.infocat.co.uk
Alan Kirk
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: TI to load cube in 9.0?

Post by Alan Kirk »

Eeyore wrote:There is a CubeUnload TI function in ver 9.0, but no CubeLoad counterpart. Is there a simple way to trigger an unloaded cube to reload using a TI process? I want to setup the unload/reload in a chore to run after hours. Thanks.
As I think Steve was alluding to, all you need to do is use a CellGetN call (in any of the tabs) to retrieve any value out of the cube. That automatically reloads it into memory.
"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.
lotsaram
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: TI to load cube in 9.0?

Post by lotsaram »

... but the question remains as to why you would want to unload the cube in the first place, if only to reload it.
Alan Kirk
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: TI to load cube in 9.0?

Post by Alan Kirk »

lotsaram wrote:... but the question remains as to why you would want to unload the cube in the first place, if only to reload it.
My guess is that it's a quick and dirty but certain way to dump all of the calulated values.

Memory matters, especially to those of us still on 32 bits.
"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.
lotsaram
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: TI to load cube in 9.0?

Post by lotsaram »

Ah yes 32 bit using v7 and v8, the server crashing when memory was exceeded and users being locked out which someone else calculated an big view or ran a process.

Yes those were the days, and do I miss them? NO NOT ONE LITTLE BIT.
Alan Kirk
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: TI to load cube in 9.0?

Post by Alan Kirk »

lotsaram wrote:Ah yes 32 bit using v7 and v8, the server crashing when memory was exceeded and users being locked out which someone else calculated an big view or ran a process.

Yes those were the days, and do I miss them? NO NOT ONE LITTLE BIT.
Nor would I. But alas, in the current economic climate my CFO would miss the $xx,xxx that we'd need to upgrade both hardware and software more... :(
"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.
Eeyore
Posts: 6
Joined: Wed Mar 04, 2009 9:32 pm
OLAP Product: TM1
Version: 9.0 SP3 64-bit
Excel Version: 2003

Re: TI to load cube in 9.0?

Post by Eeyore »

Thank you all for your input. RuleLoadFromFile does not appear to work; rule reloads but cube does not. The CellGetN call method does the trick.

As to why, Alan is correct - I purged a lot of old data out of a cube on a full server and was looking for the least disruptive way to release memory. Cube has a lot of rules and a long load time, which is why I wanted a way to schedule it to happen during non-working hours.

And yes, system upgrades are an idle fantasy these days.
Post Reply