Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-4633

Optimize self-join patterns forall statement

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • None
    • None
    • None
    • None
    • 2019 Week 41-43 (from Okt 7)
    • NEW
    • NEW

    Description

      At the moment a forall statement with a self join like

      forall( $t : Type( constraints1 ) Type( this == $t, constraints2 ) )
      

      is implemented with 2 not nodes and a join. It would be much faster to rewrite it as

      not( Type( constraints1, !constraints2 ) )
      

      and then evaluate it with one single not node.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              mfusco@redhat.com Mario Fusco
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: