[rules-users] Why is a flat object recommended?

Mark Proctor mproctor at codehaus.org
Tue Feb 19 09:59:25 EST 2008


Christie, Blair wrote:
>
> In the documents this is dicussed briefly:
>
> "). Object models can often have complex relationships and hierarchies 
> in them - for rules you will want to simplify and flatten the model 
> where possible, and let the rule engine infer relationships (as it 
> provides future flexibility."
>
>  
>
> What does it mean that the rule engine can infer relationships?
>
> Are there performance reasons for having a flat model?
>
We can exploit cartesian products and indexing for == constraints. If 
its a nested model we have to iterate over all possible instances. The 
other problem is if the nested model changes the engine has no idea this 
has happened, which if you are not careful can lead to data integrity 
issues.
>
>  
>
> Cheers,
>
> Blair  
>
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080219/c604a642/attachment.html 


More information about the rules-users mailing list