06 PM
To: "general@developer.marklogic.com" <general@developer.marklogic.com>
Subject: [MarkLogic Dev General] fragments filter large difference
collection($mycollection)/myelem[.//myA[@myattr="myval"]//myB="val"]
vs
collection($mycollection)[./myelem//myA[@myattr="
collection($mycollection)/myelem[.//myA[@myattr="myval"]//myB="val"]vscollection($mycollection)[./myelem//myA[@myattr="myval"]//myB="val"]
The first iteration performs markedly better than the second.The second
attempts to filter a million + fragments.
xdmp:query-trace shows only two constraints