Use the URL
mergepolicy command to force a merge, and (optionally) to
change the merge policy of a running MDEX Engine.
You use the URL
mergepolicy command to:
The one-time version of the command is intended for the use case of performing a complete merge of all generations without making a change to the default merge policy.
The format of the one-time version of the command is:
/admin?op=merge&mergepolicy=aggressive
The assumption is that the MDEX Engine is using a balanced merge policy, and you want to temporarily apply an aggressive policy so that the merge can be performed. After the merge is performed, the merge policy reverts to its previous setting.
When you issue the command, the resulting Web page will look like this example:
Dgraph admin, OK. Dgraph Manual merge started at Sat Jul 17 09:52:47 2010
The sticky version of the command is intended to change the merge policy of the running MDEX Engine. The duration of the policy change is for the life of the current Dgraph process (that is, until the MDEX Engine is restarted) or until another sticky change is performed during the current Dgraph process.
The format of the sticky version of the command is:
/admin?op=merge&mergepolicy=<policy>&stickymergepolicy
where
policy is either
balanced or
aggressive.
The command also performs a merge operation if warranted.
This example:
http://localhost:8000/admin?op=merge&mergepolicy=aggressive
forces a merge (if one is needed) and changes the current merge policy to an aggressive policy.

