[rules-users] Re: Performance Tuning
Yuri de Wit
ydewit at gmail.com
Fri Aug 10 11:37:47 EDT 2007
I turned them on and the INDEX_LEFT_BETA_MEMORY = true gave me some
problems: at least one rule stop firing in my test suite.
So I turned it off for now and the only thing I changed to true is:
RuleBaseConfiguration.PROPERTY_INDEX_RIGHT_BETA_MEMORY = true
RuleBaseConfiguration.PROPERTY_HASH_ALPHA_NODES = false
This seems to work.
On 8/7/07, Mark Proctor <mproctor at codehaus.org> wrote:
>
> Just turn everything on, and you should see improved performance. However I
> would recomend you move to 4.0 as soon as possible, we have much better
> performance nad memory usage there.
>
> Mark
>
> Yuri wrote:
> Mark Proctor <mproctor <at> codehaus.org> writes:
>
>
> I assume you are on 3.0, as the properties system should be overhauled.
> However left beta node indexings should be true, for both 3.0 and 4.0. I
> can't remember if alpha node hashing is true or false in 3.0, but in 4.0
> its false as default and then gets turned on when you try to do dynamic
> rule additions. But in all honest you shouldn't be touching that stuff
> unless you really know what you are doing. Turning of left beta node
> indexing only improves performance for rules that are always activated
> from the root (first) pattern.
>
> Yes, I am using 3.0.6.
>
> Here are the defaults from RuleBaseConfiguration.java:
>
> RuleBaseConfiguration.PROPERTY_INDEX_LEFT_BETA_MEMORY =
> false
> RuleBaseConfiguration.PROPERTY_INDEX_RIGHT_BETA_MEMORY =
> true
> RuleBaseConfiguration.PROPERTY_HASH_OBJECT_TYPE_NODES =
> true
> RuleBaseConfiguration.PROPERTY_HASH_ALPHA_NODES = false
>
> For an application that has hundreds of thousands of facts in memory with
> few
> rules would any of these settings improve the performance of joins?
>
> thanks,
>
> -- yuri
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
More information about the rules-users
mailing list