Forum Discussion
FICO
14 years agoCommunity Manager
Create one rule per element from a list provider?
Create one rule per element from a list provider? Hi I have a template: *Value holder VH-A for custom database list provider A, which lets the user select a value *Value holder VH-B for custom da...
FICO
14 years agoCommunity Manager
Hi Tas
Thank you for the input. In the scenario I suggested, the VH-B have a dynamic override argument (an ID) to limit the set of nodes to "children" of VH-A.
Currently I have opted for a workaround that builds the complete hierarchy of every possible element of VH-A in a single function through inserting child-parent relations in an association instead of generating one rule per level in the hierarchy.
For doing lookups in the generated code I then have to do recursive lookups in a function through that association, as compared to using rule chaining for looking up the hierarchy.
However using association for "large" input gives a considerable performance penalty (700 inserts in a int->int association takes around 2000 milliseconds on my machine), so it's not a good workaround. I ended up using a helper class with IDictionary instead, which uses 60ms for the same task.
I would very much like to see your suggested way to get around the problem.