tieredstorage.partitionTransfer( partition-db-id as (Number|String), partition-name as String, dst-db-id as (Number|String), [options as String[]] ) as null
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.
const ts = require('/MarkLogic/tieredstorage'); ts.partitionTransfer(xdmp.database('srcDB'), '2017-October', xdmp.database('dstDB'));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.