
tieredstorage:partition-transfer( $partition-db-id as xs:unsignedLong, $partition-name as xs:string, $dst-db-id as xs:unsignedLong, [$options as xs:string*] ) as empty-sequence()
This function detaches forests in a partition from one database and attaches them to another. For details, see Transferring Partitions between Databases in the Administrator's Guide.
xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage"
at "/MarkLogic/tieredstorage.xqy";
ts:partition-transfer(xdmp:database("srcDB"), "2012-April", xdmp:database("dstDB"))
=>
()
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.