Loading TOC...

tieredstorage.partitionSetUpdatesAllowed

tieredstorage.partitionSetUpdatesAllowed(
   $database-id as (Number|String),
   $partition-name as String,
   $value as String
) as null

Summary

This function sets update-allowed state for the forests in the specified partition. For details, see Tiered Storage in the Administrator's Guide.

Parameters
$database-id ID of the database in which the partition will reside.
$partition-name Name of the partition.
$value The new updates-allowed state of the partition. Must be one of all for all updates allowed, delete-only for only deletes allowed, read-only for no updates allowed and to cause updating transactions to abort immediately, flash-backup for no updates allowed and to make updating transactions retry for a time period specified in the group's retry timeout. These are the same setting as used on the forests, as described in Forests in the Administrator's Guide.

Example

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

declareUpdate();
ts.partitionSetUpdatesAllowed(xdmp.database('Documents'), '2017-October', 'all');
   

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