java - Could the Drools update method potentially be causing my problems -


I am currently writing an application using Drools 5.0. This application is running a bit slow, but I have a theory why this app already receives many updates for the facts stored in the Knowledge Session. Under the hood the drals update function is actually a comeback, then there is an entry. There are more than 200 rules in this application: Some rules are written when some facts are removed. Other rules are written in the fire when some facts are called in the knowledge session. Since the update is actually a comeback, then will there be an exhaustion and insertion related rules still under fire during an update? Regardless, nothing can be really 'put' or withdrawn from the knowledge session?

One thing to note, I have bowed down the working memory logger for my knowledge session to get a better idea about what is happening. When I saw many unexpected return / entry rules-activation composition being added to the agenda, but it seems that they are never active. It seems that updating the facts can be expensive depending on your particular model, and I should use a little bit is it right?

I think you have understood it correctly. An update is a kind of withdrawal and an emphasis. The first thing to do is to ensure that if your rules are giving you - that is how it works, but do you want to improve performance only?

In some ways you can think of updates (and can also checkout the "modified" keyword). As part of the evils of disqualification;) When you update - you tell the network that the fact has changed, but it still keeps track of any field level (which is TBD), so it does more work May be necessary, because all these activations have been created which are not really necessary (because they are using areas that have not actually changed in value).

It's hard to be more specific - if you've provided some sample rules / facts models (if you can definitely do it safely!) We have more granular to break it.

Good luck!


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -