Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1101

MVEL direct property accessors being converted to a ReturnValueConstraint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.GA
    • Fix Version/s: 4.0.1
    • Component/s: drools-compiler
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Create an alias instead of using the direct propery accessor

      Show
      Create an alias instead of using the direct propery accessor

      Description

      After narrowing down a performance issue with my drools app, I reached to the dev team and quickly it became clear that for some reason drools was not indexing my field constraints. After some investigation and some help from Conan it became clear that one of the problem was that MVEL direct property accessors were being translated into a ReturnValueConstraint (afaik, an eval), which cannot be indexed by default.

      So I changed my rules to make sure that i used aliaes for the first 3 constrraints instead of property accessors and I was able to see trememdous perf improvements for my usecases.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tirelli Edson Tirelli
                Reporter:
                ydewit Yuri de Wit
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: