after upgrading our servoy developer to 2.1, we (happily)
noticed that calculations were not called as often as in
previous releases
the problem is, a few of our calculations are time consuming,
as they call many other calculations in order to generate a
“grand total”.
this is the needed functionality, and calulations seem well suited
for the task.
however, i’m finding that calcs are still called many more times
than i would expect them to be. as an experiment, i put together
a very small solution with only one field, and one calculation.
both the field and calc are on a form. the calc calls
application.output so i can see when it’s getting called, and
returns the value of the one field multiplied by 2.
when i bring up the form, and enter a value in the field, then
click outside the field, the calc is called 3 times!
i’m also finding that in my main solution, which has 12 tabs on a
tab sheet, switching between tabs causes our calcs to fire many
times, even though no data has been changed.
we’d really like to speed up the performance of the solution,
without redesigning the whole thing. is there a way to get
servoy to cut back on the number of times it calls calcs?