What are in memory elements in marklogic?

前端 未结 3 1497
谎友^
谎友^ 2021-01-18 10:18

I have couple of documents on which xdmp:node-replace() over certain elements doesnot work. There are some other set of documents which are almost similar to th

3条回答
  •  死守一世寂寞
    2021-01-18 11:05

    Anything constructed within a query is an in-memory element. For example this XQuery yields an in-memory element:

    
    

    Some function calls also return in-memory elements: xdmp:unquote is an obvious example. Any node that doesn't come from the current database will be treated as an in-memory node.

    This query yields a database element (if it exists), which could be modified using xdmp:node-replace:

    doc('fubar')/test
    

    This is a typical in-memory update error:

    xdmp:node-replace(, )
    

    With MarkLogic 6.0-1.1, the error code is XDMP-UPCONSTNODES.

提交回复
热议问题