cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to reduce the delay of mashup loading in Thingworx (9.3.0)?

NH_shree
14-Alexandrite

How to reduce the delay of mashup loading in Thingworx (9.3.0)?

Hello,

 

I have created a mashup which consists of 4 different mashups in it , which is mapped to fetch the data from the database and to display it on the mashup. (my mashup link is something like this https://<xyzname>-dev-twx.es.thingworx.com/Thingworx/Mashup/<mashup_name>

 

As i have also had auto refresh function to the services with 5 seconds refresh interval, the thing is mashup services are getting the real time data but in the mashup we are not able to any data even though the delay is been given to 5 seconds as we have the data  in each second in the database , In mashup we are seeing only refresh loading symbols on the widgets instead of data where the loading symbol will not be removed .

 

How to get rid of the loading symbol from the mashup and make the fetched data visible (also can i keep the auto refresh to 1 seconds as our machine data will be keep on updating for each second , is that the reason why I am unable to see the data)  and also how to get the mashup loaded fast (can we implement any cdn to the mashup.

 

Kindly help me to get the solution to this issue as soon as possible.!

 

Please refer the below image where you can get the brief idea about what I am trying to convey

NH_shree_0-1692763166216.png          NH_shree_1-1692763186266.png

 

NH_shree_2-1692763219892.png    

NH_shree_3-1692763348639.png

 

 

Regards,

Shree

ACCEPTED SOLUTION

Accepted Solutions

Hi @NH_shree 

 

No it wont affect anything. 

To debug your mashup, Create a New test mashup and bind value to widget. Don’t call any other service in that mashup and check whether data is loading properly

 

/VR

View solution in original post

12 REPLIES 12

Hi @NH_shree 

 

You can disable the loading icon in widget property

 

Velkumar_0-1692764351759.png

 

To improve loading time, could you please tell me how exactly you are fetching data from Database (maybe some sample query)

 

/VR

 

NH_shree
14-Alexandrite
(To:Velkumar)

Hi @Velkumar ,

NH_shree_1-1692766371507.png

for the above image the query is as follows 

NH_shree_0-1692766287099.png 

NH_shree_2-1692766484571.png   

NH_shree_3-1692766493712.png  

NH_shree_4-1692766501933.png

 

 

 

the query is  written like this ( sample for here i have used 3 parameters related to the above image)

SELECT  Extruder_0_Filament_Run_Out,Extruder_1_Filament_Run_Out

FROM SFv2printer

WHERE created_at=(select max(created_at) from SFv2printer);

 

Regards,

Shree

@NH_shree  Have you checked in the browser developer tool how many times the service is being called and the time taken to execute it?

NH_shree
14-Alexandrite
(To:Velkumar)

Hi @Velkumar ,

 

How to check? can you tell me 

 

Regards,

Shree

Hi @NH_shree  

 

1. Open your mashup in runtime

2. Press the F12 button and select Network

3. In the network you can see service calls and the time taken to load

 

Velkumar_0-1692767748615.png

 

/VR

 

NH_shree
14-Alexandrite
(To:Velkumar)

Hi,

Also if i try to access my mashup page it is showing me the error like below 

i1.png

Previously it was working fine but now a days it is showing like this and on the mashup the data is also not updating

Regards,

Shree

NH_shree
14-Alexandrite
(To:NH_shree)

Hi @Velkumar ,

I am getting like this in the browser 

NH_shree_0-1692769511836.png

NH_shree_1-1692769535965.png

NH_shree_2-1692769731062.png

 

 

Row 1903 is the last data it should show but i am waiting , still it is showing like this and previously atleast it was showing last data logged even though the data loading symbol overlaps it but now when i am checking it from yesterday it is showing me 0 value, what could be done.

 

Regards, 

Shree

 

NH_shree
14-Alexandrite
(To:NH_shree)

Hi,

 

The services are getting the status response 200 sometimes ,

Screenshot 2023-08-23 112132.png

 

again it is showing failed status 

NH_shree_0-1692770518567.png

 

Hi @NH_shree 

 

Could you please check what is the error message for failed calls? 

 

Click on call and Response should give error message

Velkumar_0-1692771067056.png

 

 

/VR

NH_shree
14-Alexandrite
(To:Velkumar)

Hi @Velkumar ,

NH_shree_0-1692774738115.png

It is showing like this

 

Regards,

Shree

 

NH_shree
14-Alexandrite
(To:Velkumar)

Hi,

If we uncheck theshow data loading property will it affect the auto -refresh of the service which is executing and mapped to widget to fetch and display the data from the database.

Regards,
Shree


Hi @NH_shree 

 

No it wont affect anything. 

To debug your mashup, Create a New test mashup and bind value to widget. Don’t call any other service in that mashup and check whether data is loading properly

 

/VR

Announcements


Top Tags