Loading TOC...

tieredstorage.partitionNumberForests

tieredstorage.partitionNumberForests(
   $database-id as (Number|String),
   $partition-number as (Number|String)
) as Sequence

Summary

This function returns the IDs of the forests with the specified partition-number in the named database.

Parameters
$database-id ID of the database in which the partition resides.
$partition-number The partition number from which to return the forest IDs.

Example

// Returns the IDs of the forests in the number 1 partition in the
// 'Documents' database.

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

ts.partitionNumberForests(xdmp.database('Documents'), 1);
   

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