开发者

How to improve the Orbeon Form performance/execution

开发者 https://www.devze.com 2023-02-24 06:50 出处:网络
I have developed an Orbeon Form with 500 controls. It has got many interdependent controls which leads to bunch of conditions in binding for required, readonly, calculate etc etc..

I have developed an Orbeon Form with 500 controls. It has got many interdependent controls which leads to bunch of conditions in binding for required, readonly, calculate etc etc..

Now When 开发者_StackOverflow中文版i change something in a drop down, it takes more time to execute the binding conditions. But this drop down is binded for only 3 other controls on readonly/required/calculate/relevant.

I would understand whether the whole model bindings are executed every time when there is change in any control or only the dependent bindings are executed.


Try checking out xxforms:refresh-items link. What happens is these select and select1 options are computed on the xforms-refresh event. If you know that these options will not be changing, the xxforms:refresh-items will create the options once in the beginning of the form and not try to update them again.

For more general performance tweaking: link


In addition to the link to the wiki page on performance tuning already mentioned by @Anthony, it looks like the situation you describe is exactly what the XPath analysis feature is designed to help with. Without analyzing XPath expressions, Orbeon Forms needs to reevaluates almost all your XPath expressions almost every time users interact with the form, and sometimes even multiple times per interaction.

Now, you should be aware that this is a PE-only feature, but if you are not already using Orbeon Forms PE, and that this feature makes a difference to how well your large form performs, getting the PE might be worth it for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消