Performance Issue with N_CONNECT macro

Post Reply
nhavis
Posts: 62
Joined: Mon Jan 05, 2009 12:47 am

Performance Issue with N_CONNECT macro

Post by nhavis »

Hi,

I have a front-end which makes use of the N_CONNECT macro to log in to TM1.

I've been trying to debug some performance issues when the workbook loads and it appears as if this macro is taking about 13-14 seconds to complete:

Open "C:\test1.txt" For Output As #1
Print #1, Time
vTemp = Run("N_CONNECT", ParamServerName, ParamUsername, ParamPassword)
Print #1, Time
Print #1, "Return Value: " & vTemp
Close #1

Here's the output:

4:17:05 PM
4:17:18 PM
Return Value:

As you can see it has taken about 13 seconds and has completed without error (indicated by no return value).

Does anyone know why this could be taking so long?

Regards.
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: Performance Issue with N_CONNECT macro

Post by Martin Ryan »

I'd be surprised if it was this particular macro. It's more likely to be something that's merely showing symptoms when you use this macro.

How fast is your connection time if you log on to TM1 directly? How long does it take to refresh a slice?

My own system takes a while to log on which I put down to quite complex security settings which take a while to load. It could also be a slow network.

Are you finding other areas of your system give slow response times?

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
nhavis
Posts: 62
Joined: Mon Jan 05, 2009 12:47 am

Re: Performance Issue with N_CONNECT macro

Post by nhavis »

Logging on to the server (running on my own pc) is instant, however when the spreadsheet is open and I then log in it often crashes as I get the spreadsheet automatically trying to load and Server Explorer gives me the 'Switch To' option.

Win XP,
TM1 9.4.
ScottW
Regular Participant
Posts: 152
Joined: Fri May 23, 2008 12:08 am
OLAP Product: TM1 CX
Version: 9.5 9.4.1 9.1.4 9.0 8.4
Excel Version: 2003 2007
Location: Melbourne, Australia
Contact:

Re: Performance Issue with N_CONNECT macro

Post by ScottW »

Sounds suspiciously like an auto calc issue.

Have you made absolutely sure that XL calculation mode is manual before running N_Connect?

Application.Calculation = xlManual
Cheers,
Scott W
Cubewise
www.cubewise.com
vdag001
Posts: 3
Joined: Thu Dec 04, 2008 10:48 pm

Re: Performance Issue with N_CONNECT macro

Post by vdag001 »

Hi all,

I too was getting this issue.
Was running 9.4 hotfix 3 and then upgraded to 9.4 MR1
This supposedly 'fixed' the login speed and stopped crashing On the N_Connect/N_Disconnect when logging on or off TM1 server explorer if Excel Perspectives was open.

However - its back! :cry:

Not sure if MR1 was just a temporary fix or what but the same issues are happening and we are going to deploy our model soon (which is obviously not user friendly now!)

Not sure what it can be??
And yes we have the workbooks set to Calculation = xlManual on Open

Vicky
Post Reply