MarkLogic Server 11.0 Product Documentation
tieredstorage.databasePartitionNumbers

tieredstorage.databasePartitionNumbers(
   database-id as (Number|String)
) as Sequence

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

//Returns the partition numbers in the "Documents" database.

const ts = require('/MarkLogic/tieredstorage');

ts.databasePartitionNumbers(xdmp.database('Documents'));
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy