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 on the second iteration, namely fn:collection, when gathering constraints.
Any insight appreciated on why so different.
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general