tieredstorage:partition-set-availability( $database-id as xs:unsignedLong, $partition-name as xs:string, $value as xs:string ) as empty-sequence()
This function sets the availability of the partition to either
online
or offline
. An online
partition
is fully accessable through queries when its forests are attached to a database.
The forests in an offline
partition, as well as any replica forests, cannot be accessed.
Parameters | |
---|---|
database-id | ID of the database containing the partition. |
partition-name | Name of the partition. |
value |
The availability of the partition. Values can be online or offline .
|
xquery version "1.0-ml"; import module namespace ts="http://marklogic.com/xdmp/tieredstorage" at "/MarkLogic/tieredstorage.xqy"; ts:partition-set-availability(xdmp:database("Documents"),"2012-April", "offline") (: Takes the 2012-April partition in the Documents database offline. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.