Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application.Run leads to serious performance degradation #43

Open
wimgielis opened this issue May 13, 2022 · 1 comment
Open

Application.Run leads to serious performance degradation #43

wimgielis opened this issue May 13, 2022 · 1 comment

Comments

@wimgielis
Copy link

Hello,

In the last couple of weeks I opened multiple tickets with IBM support regarding PAfE commands in regular Excel VBA modules.
Be it: UnlinkSheet, or RefreshSheet and similar functions.

These functions run fine in the end but whejn any of the preceding lines uses Application.Run towards regular TM1 functions, the same commands run very very slowly. Run time *5 or worse by just adding such a line. Examples:

  • vElement = Application.Run("SUBNM", sTM1Server & ":" & sDimension, sSubsetToLoop, i)
  • vElement_Code = Application.Run("DIMNM", sTM1Server & ":" & sDimension, app.Run("DIMIX", sTM1Server & ":" & sDimension, vElement))
  • lNrOfVestigingen = Application.Run("SUBSIZ", sTM1Server & ":" & sDimension, sSubsetToLoop)

So basically within VBA I ask for the result of DIMIX, DIMNM, SUBSIZ but also DBRW on other occasions.

What could be the reason ? If I comment these lines in the code the other PAFE API commands run at normal speed.

Thanks,

Wim

@tedphillips
Copy link
Collaborator

are you still seeing this? it should not be the case. i do recall a support ticket that went by and perhaps we provided feedback there.

a some thoughts just in case:

  • watch out for other pending (volatile/CALCULATE pending) workloads as cost may be incurred when the macro is run.

  • check out the evaluate synchronous options that were added to the api recently to improve the consumption story of udf's in macro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants