update

/admin?op=update applies any partial update files to the Dgraph.

This operation instructs the Dgraph to process the partial update files in its update directory. For more information on partial updates, see the Partial Updates Guide.

On receiving the URL update command, the Dgraph by default performs the following sequence of operations:
  1. Continues processing queries concurrently with processing the update.
  2. Checks the updates directory and uploads all partial updates that have not yet been uploaded.
  3. Processes the update files and deletes them.

Processing updates from a single file

In some cases, you may need to run a partial update by pointing the Dgraph to a single file. In this case, run the admin?op=update&updatefile=filename option where filename is the name of an update file residing in the update directory.

If you have more than one file, rerun this command. The update file is deleted after the MDEX Engine successfully applies the results of the partial update.

Agraph support

The /admin?op=update operation is not supported in the Agraph.