Loading TOC...

MarkLogic 10 Product Documentation
tieredstorage:database-partition-numbers

tieredstorage:database-partition-numbers(
   $database-id as xs:unsignedLong
) as xs:unsignedLong*

Summary

This function returns the partition numbers of the forests in the database

Parameters
database-id ID of the database in which the partitions reside.

Example


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