How Assignment Policy Affects Optimization
This section describes how your choice of document assignment policy can introduce additional limitations and risks. Assignment policy is a database configuration setting that affects how MarkLogic Server selects what forest to insert a document into or move a document into during rebalancing. For details, see Rebalancer Document Assignment Policies in Administrating MarkLogic Server.
Note
Assignment policy was introduced with MarkLogic 7 and mlcp v1.2. If you use an earlier version of mlcp with MarkLogic 7 or later, the database you import data into with -fastload
or -output_directory
must be using the legacy assignment policy.
The following table summarizes the limitations imposed by each assignment policy. If you do not explicitly set assignment policy, the default is Legacy or Bucket.
Assignment Policy |
Notes |
---|---|
Legacy (default) Bucket |
You can safely use
|
Statistical |
You can only use All documents in a batch are inserted into the same forest. The rebalancer may subsequently move the documents if the batch size is large enough to cause the forest to become unbalanced. If you set |
Range |
You can only use You should use You can only use If you set |
Query |
You can only use You should use You can only use If you set |