Powered by Zoomin Software. For more details please contactZoomin

Administrate MarkLogic Server

Setting the updates-allowed State on Partitions

Setting the updates-allowed State on Partitions

  • Last Updated: April 15, 2026
  • 1 minute read
    • MarkLogic Server
    • Version 12.0
    • Documentation

You can change the updates-allowed state of a partition to make its forests. The possible states are shown in the table below.

State

Description

all

Read, insert, update, and delete operations are allowed on the partition.

delete-only

Read and delete operations are allowed on the partition, but insert and update operations are not allowed.

read-only

Read operations are allowed on the partition, but insert, update, and delete operations are not allowed. A transaction attempting to make changes to fragments in the partition will throw an exception.

Note:

Resizing a read-only partition to fewer forests preserves its original forests.

flash-backup

Puts the partition in read-only mode without throwing exceptions on insert, update, or delete transactions, allowing the transactions to retry.

For example, to set the updates-allowed state in the 2011 range partition in the Documents database to read-only, do the following:

$ cat read-only-partition.xml
<partition-properties xmlns="http://marklogic.com/manage">
  <updates-allowed>read-only</updates-allowed>
</partition-properties>
$ curl --anyauth --user user:password -X PUT \
-d @read-only-partition.xml -H 'Content-type: application/xml' \
http://MyHost:8002/manage/v2/databases/Documents/partitions/2011/properties
TitleResults for “How to create a CRG?”Also Available inAlert