[jboss-jira] [JBoss JIRA] (DROOLS-4633) Optimize self-join patterns forall statement
Mario Fusco (Jira)
issues at jboss.org
Mon Oct 14 06:04:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4633?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-4633.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/03c2f67dee21b4a6d38c484b4e7f68a933672d51
> Optimize self-join patterns forall statement
> --------------------------------------------
>
> Key: DROOLS-4633
> URL: https://issues.jboss.org/browse/DROOLS-4633
> Project: Drools
> Issue Type: Enhancement
> Reporter: Mario Fusco
> Assignee: Mario Fusco
> Priority: Major
>
> At the moment a forall statement with a self join like
> {code}
> forall( $t : Type( constraints1 ) Type( this == $t, constraints2 ) )
> {code}
> is implemented with 2 not nodes and a join. It would be much faster to rewrite it as
> {code}
> not( Type( constraints1, !constraints2 ) )
> {code}
> and then evaluate it with one single not node.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list