what affects speed of Run("DBRA") or "W_Calc"

Post Reply
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

what affects speed of Run("DBRA") or "W_Calc"

Post by telula »

Hello,
I have a excel interface that calls macros like Run("DBRA",etc,etc) or Run("W_Calc").
When I run it for the first time, sometimes it takes 18 seconds for the subroutine to complete executing.Most times, it takes 1-2 seconds. Does anyone have this problem? Does anyone have any idea whats causing the long delay and how to fix it?
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: what affects speed of Run("DBRA") or "W_Calc"

Post by Steve Rowe »

This is probably just TM1 caching the results of the calculation from the first request, this aloows it to respond faster on the next call. Theres no real way to solve it unless you calculate the results that the wkb is asking for on the server first.
Cheers
Technical Director
www.infocat.co.uk
telula
Posts: 99
Joined: Tue Nov 18, 2008 5:40 am

Re: what affects speed of Run("DBRA") or "W_Calc"

Post by telula »

Steve,
What do you mean by calculating the results on the server?Can you give an example?
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: what affects speed of Run("DBRA") or "W_Calc"

Post by Steve Rowe »

When you request a value from the server it needs to be calculated if it is a rule or a consolidation. Tm1 caches the result of this calcualtion which means the first time that you ask for a number it can take longer.

Edit...
Oh that's not what you meant...
You can use ViewConstruct in a TI to get the calculation to be chached, but remember those results will get discarded when a user changes a numbers
Technical Director
www.infocat.co.uk
Post Reply