Skip to main content
Dec 10, 2022 10:03 AM UTC
Solved

Expression - Performance Issue

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,

PaiChungAnswer
Dec 13, 2022 12:11 PM UTC

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 

4 replies

PaiChungAnswer
Dec 13, 2022 12:11 PM UTC

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 

Dec 13, 2022 1:00 PM UTC

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,

Dec 13, 2022 1:07 PM UTC

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.