performancemarklogicmarklogic-7

How can I improve Marklogic 7 performance on the following: /*[fn:name()="something"]


I have a basic query:

/*[fn:name()="something"]

(1) Marklogic 7 is taking multiple seconds, is there an index that I can add to make this query faster?

(2) Which in memory limits should be increased to improve performance?

(3) Are there other ways to improve the performance with a different query but get exactly the same result?


Solution

  • Try using fn:node-name instead. I believe that's optimized. You'll need to handle namespaces properly, and that's part of why it can be optimized while fn:name can't.

     /*[fn:node-name()=fn:QName("","something")]