This query is taking a long time to execute which seems to have happened in recent versions for MarkLogic. I'm currently using 8.0-6.4
declare default element namespace 'http://developer.envisn.com/xmlns/envisn/netvisn/'; let $cq := cts:and-query(( cts:collection-query('content'), cts:element-value-query(xs:QName('searchPath'), '/content'), cts:element-value-query(xs:QName('navType'), 'content') )) return cts:search(doc(), $cq, 'unfiltered')/content/lookupInfo[searchPath='/content'] A large number of documents have searchPath which start with '/content', for example: '/content/package[@name='BI Reporting']/folder[@name='BI Sales']/report[@name='A Test1 - Order Summary']' The longer search path returns very quickly but the '/content' path executes upwards of 10 minutes in large databases. Thanks for any advice, Gary
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
