
tieredstorage:database-partition-numbers( $database-id as xs:unsignedLong ) as xs:unsignedLong*
This function returns the partition numbers of the forests in the database
| Parameters | |
|---|---|
| database-id | ID of the database in which the partitions reside. |
xquery version "1.0-ml";
import module namespace ts="http://marklogic.com/xdmp/tieredstorage"
at "/MarkLogic/tieredstorage.xqy";
ts:database-partition-numbers(xdmp:database("Documents"))
(: Returns the partition numbers in the "Documents" database. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.