Skip to main content
18-Opal
December 10, 2022
Solved

Expression - Performance Issue

  • December 10, 2022
  • 1 reply
  • 1812 views

Hello,

I have been using around 40 Expressions in Thingworx mashup. I observed that rendering of the Dashboard on the Runtime became slow, so will the number of Expressions affect the performance of Thingworx Mashup Rendering?

Thanks,

Best answer by PaiChung

They can, it all depends on what they do and when they trigger.

If the expressions are used to provide data to display, they will certainly slow down rendering.

If you are curious you can log out timestamps as your expressions run and see them in the developer tools log console 

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
December 13, 2022

They can, it all depends on what they do and when they trigger.

If the expressions are used to provide data to display, they will certainly slow down rendering.

If you are curious you can log out timestamps as your expressions run and see them in the developer tools log console 

18-Opal
December 13, 2022

Hi @PaiChung ,

I am Getting DateTime Values in the format of JSON from a Service; those DateTime Values are around 40; in expression, I am Converting them to String Format to DateTime and Passing them to the Tool Tips of ValueDispay Widgets. 40 Value Display widgets, 40 Expressions.

Thanks,

22-Sapphire I
December 13, 2022

Again I would run the mashup with log statements and the dev tools so you can see what parts take a lot of time.

If necessary, perhaps you can convert the json server side and have the service output the required strings, I know this can be challenging if you are doing time zone type conversions.