MVEL direct property accessors being converted to a ReturnValueConstraint
-------------------------------------------------------------------------
Key: JBRULES-1101
URL:
http://jira.jboss.com/jira/browse/JBRULES-1101
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.0.GA
Reporter: Yuri de Wit
Assigned To: Mark Proctor
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira