Hi,

 

I try solve a query which is throwing XDMP-EXPNTREECACHEFULL errors.  It's
possible that the documents being queried have a large number of fragments
(> 30K).  The query is not referencing any elements in the fragments, but
I'm wondering if the query is loading the root document AND fragments into
the expanded tree cache.  Here's main part of the query

 

let $cq := cts:and-query(( 

 cts:directory-query('/db/netvisn/content/','infinity'), 

 cts:element-value-query(xs:QName('key'), $keys) 

))  return <results> 

{for $info in cts:search(doc(), $cq, 'filtered')/content/lookupInfo return 

<SyncData>{$info/key}

 

Do I need to surround the cts:element-value-query() with a
cts:document-fragment-query() to avoid grabbing the fragments?

 

Thanks 

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to