Don't ask me to explain why but the Drools team always recommend flattening hierarchies before inserting into WM ;-)
I *think* this allows for individual facts' properties to be indexed in the RETE network thus affording a performance increase. I guess there's also implications to do with truth maintenance whereby objects accessed using "from" should be time-constant. My 2c's worth; I'm sure Edson, Mark, Michael et al will elaborate. Cheers, Mike -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raffi Khatchadourian Sent: 18 April 2008 02:34 To: rules-users@lists.jboss.org Subject: [rules-users] To insert facts or use the find clause? I would like to use Drools to reason about a graph structure using queries. The graph consists of a collection of nodes, which in turn each have a collection of edges to nodes. Currently, I have a single fact in the Drools working memory, the graph. My queries then use the "from" clause to obtain information about the nodes and edges within the graph. I was wondering if it would be better to instead traverse the entire structure adding each node and edge as facts into the working memory. Any ideas? Thanks! _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users