Which Core Java function does the Mendix modeler use when performing XPaths?

0
In the modeler it encouraged to create XPaths that filter on the most objects first. For example This:   //ModuleName.Client[FirstName = 'John' and Status = 'Active'] should execute faster than this: //ModuleName.Client[Status= 'Active' and FirstName = 'John'] When I tried to replicate this in a Java action using Core.retrieveXPathQuery they take almost the same amount of time. So I’m wondering if the Modeler uses a different function – I’d like to replicate the behavior in the modeler.  
asked
1 answers
2

Have you tried looking at Core.createXPathQuery? I believe that is the current preferred method. 
https://apidocs.mendix.com/8/runtime/com/mendix/core/Core.html#createXPathQuery(java.lang.String)

answered