
tieredstorage.databasePartitionNumbers( database-id as (Number|String) ) as Sequence
This function returns the partition numbers of the forests in the database
| Parameters | |
|---|---|
| database-id | ID of the database in which the partitions reside. |
//Returns the partition numbers in the "Documents" database.
const ts = require('/MarkLogic/tieredstorage');
ts.databasePartitionNumbers(xdmp.database('Documents'));
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.