Loading TOC...

MarkLogic 9 Product Documentation
tieredstorage.databasePartitions

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

Summary

This function returns the names of the partitions in the named database. For details, see Tiered Storage in the Administrator's Guide.

Parameters
database-id ID of the database in containing the partitions.

Example

// Returns the names of the partitions in the Documents database.

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

ts.databasePartitions(xdmp.database('Documents'));
   

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.