eservent
Enthusiast
Enthusiast

Hello,

I'm interested too, if you find a way to load faster XaaS forms ;-).

I have many fields and my forms took more than 30sec to compute, so it was always "failed".

I use some "optimizations" to keep XaaS form working :

- For instance, to avoid running an action, if a mandatory field was not yet set, I added this in the OGNL field : #myMandatoryField && GetAction().call(#myMandatoryField).

It will run and return the result from GetAction only if myMandatoryField is not empty, and not run GetAction if nothing

- To avoid loading heavy page, before it's really needed, I add a checkbox field : eg: "Do you want to see the heavy page ?", and use the parameter "Show paramater input" on the Step directly with this boolean as OGNL expression. In this case, if the step is hidden, no compute at all!

- But it's not enough, so I use cache for all non-dynamic value. I run action, and put the result in cache, the second run, just read the cache. Result is really amazing...If you're interested, I put my code in a sample : Easy Cache Manager for any actions results - Samples - VMware {code}

But all these "optimizations" are not very satisfying...But I couldn't do anything without !

Emmanuel.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Emmanuel.