Loading TOC...


   $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.

partition-db-id ID of the database from which the partition will be moved.
partition-name Name of the partition.
dst-db-id ID of the database to which the partition will be moved.
options Whether or not data will be deleted. Valid option value:
Specifies the number of seconds to wait for a forest to re-open after a configuration is made during the transfer operation.


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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.