I am logically asserting a bunch of Routeobjects:
  new Route(Object cause, int distance)
and I need the sum of all the distances of all the Routes.
so after the rules are fired I can fetch all Routes and sum the distances.

Problem is... in my use case I am constantly (like +1k times a second) changing one little fact, firing all rules and decide which fact to change next based on the sum of the distances. Talk about stressing drools's forward-chaining :)

So by constantly recalculating the sum of those distances starting from 0, it loses a huge amount of scalability.
It would be a lot better if a sum would be calculated like this:
nextSum = lastSum - distanceFromAnyRetractedRoutes + distanceFromAnyAssertedRoutes; This would mean that the rules engine would need to support some sort of sum query's.

What do you think? Is this feasible and in the scope of drools enough to create a long term feature request in jira for this?

Thanks.

--
With kind regards,
Geoffrey De Smet

https://svn.sourceforge.net/svnroot/taseree/trunk


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to