Very slow initial form load times

  • 5 April 2016
  • 0 replies
  • 106 views

Badge +4


 

Symptoms


We are seeing very slow form loading times when we open a form. (50-60 seconds) After some testing, we noticed that this is 8 seconds slower when you load a form for the first time each day. We have a couple of c-level employees that only use K2 once every week. K2 appears slow to them every time they do anything and this causes them to wonder about the product.
 

Diagnoses


After looking at the form, we noticed that there are a couple of tabs at the top. When looking at the form rules, we noticed that all the data gets loaded on the form when the form initializes. Because of this, the form takes - 60 seconds to load every time. I also noticed that the users cleared the control cache every time they tested the form. This slowed down performance even more.
 

Resolution

We changed the form rules slightly to only load the data on the first tab. When you click on the other tabs, we load the data as needed. We also instructed the users not to clear the control cache anymore. (You might need to do this once every now and then when you are developing your own custom controls, but in general, this should not be needed.) After tweaking the form to load data on demand as apposed to all at once on form initialize, form load times have improved greatly.




 

0 replies

Be the first to reply!

Reply