
xdmp:merge( [$options as (element()|map:map)?] ) as empty-sequence()
Starts merging the forests of the database, subject to specified options.
http://marklogic.com/xdmp/privileges/xdmp-merge
http://marklogic.com/xdmp/privileges/xdmp-merge/database/{id}
xdmp:merge(<options xmlns="xdmp:merge">
<merge-max-size>500</merge-max-size>
<merge-timestamp>8273</merge-timestamp>
<single-stand>false</single-stand>
<forests>
<forest>{xdmp:forest("my-forest")}</forest>
<forest>{xdmp:forest("my-other-forest")}</forest>
</forests>
</options>)
(: Performs a merge on my-forest and my-other-forest. If a stand
: created by this merge would be greater than 500 megabytes, the merge
: will be limited and not all stands will be merged (as many as can be
: merged under 500 MB will be merged). If my-forest or my-other-forest
: have only one stand, they will not be merged. Any fragments with
: timestamp 8273 or newer will not be garbage collected.
:)
xdmp:merge(
map:map() => map:with("mergeMaxSize", 500)
=> map:with("mergeTimestamp", 8273)
=> map:with("singleStand", fn:false())
=> map:with("forests",
(xdmp:forest("my-forest"),
xdmp:forest("my-other-forest")))
)
(: Performs a merge on my-forest and my-other-forest. If a stand
: created by this merge would be greater than 500 megabytes, the merge
: will be limited and not all stands will be merged (as many as can be
: merged under 500 MB will be merged). If my-forest or my-other-forest
: have only one stand, they will not be merged. Any fragments with
: timestamp 8273 or newer will not be garbage collected.
:)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.