Hi ,

As Asit told , always try to use ML specific functions to avoid expanded tree 
cache error and get better performance . Try the below one for your requirement 
.

for $update-node in cts:search(/,
    cts:and-query((( cts:collection-query("test")),(
      cts:element-attribute-range-query(
        xs:QName("visit"),
        xs:QName("age"),
        "=",
        ('60','61','62','63','64','65'))))))
return 
xdmp:node-insert-child($update-node/patient/link/visit,<mynode>String</mynode>)


thanks and regards
Raja >>>

From: [email protected] 
[mailto:[email protected]] On Behalf Of ???
Sent: Tuesday, July 07, 2015 9:23 AM
To: [email protected]
Subject: [MarkLogic Dev General] xdmp:node-insert-child() throw 
XDMP-EXPNTREECACHEFULL error

my query is :
xdmp:node-insert-child(collection('test')/patient/link/visit[@age = 
('60岁','61岁','62岁','63岁','64岁','65岁')],
 <mynode>some string ...</mynode>);

how to change my query to void the XDMP-EXPNTREECACHEFULL error?
thanks.

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to