1

我开发了一个带有 500 个控件的 Orbeon 表单。它有许多相互依赖的控件,导致绑定所需的、只读的、计算等的一系列条件。

现在,当我在下拉列表中更改某些内容时,执行绑定条件需要更多时间。但是这个下拉列表只绑定了 readonly/required/calculate/relevant 上的其他 3 个控件。

我会理解每次控制发生变化时是否执行整个模型绑定,或者只执行依赖绑定。

4

2 回答 2

1

尝试签出xxforms:refresh-items 链接。发生的情况是这些 select 和 select1 选项是在 xforms-refresh 事件上计算的。如果您知道这些选项不会更改,xxforms:refresh-items则将在表单开头创建一次选项,并且不会再次尝试更新它们。

有关更一般的性能调整:链接

于 2011-04-11T17:16:34.777 回答
1

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.

于 2011-04-11T18:04:25.910 回答