In some cases, you may need to run a partial update by pointing
the Dgraph to a single file by using the
admin?op=update&updatefile=filename
option.
The recommended way of running partial updates is by using the
admin?op=update
URL command that applies all files
residing in the
dgraph_input/updates
directory (or the directory that
you specify for updates with the
--updatedir
flag). However, pointing the Dgraph to a
single updates file may be useful for performance testing purposes, such as
when you plan to run Eneperf in the two-stream mode to test MDEX Engine
performance with partial updates.
Note
Before running Eneperf in the two-stream mode, you first need to obtain a separate request log that contains only partial update requests issued to the MDEX Engine. You can obtain such a log when you run several partial updates on single update files. For more information on running Eneperf for testing updates performance, see the Performance Tuning Guide.
To run a partial update on a single file:
Add the update file to the
dgraph_input/updates
directory or the directory specified using the--updatedir
flag.In your Web browser, issue the update command with this URL syntax:
http://hostname:dgraphport/admin?op=update&updatefile=filename
where
filename
is the name of an update file residing in the updates directory.You can run this command on a single file only. If you have more than one file, rerun this command once for each file.
The MDEX Engine deletes the update file after successfully applying the results of the partial update.
Note
For performance reasons, Oracle recommends running partial
updates in batch mode, by only using the
admin?op=update
command. This command applies all
the update files present in the
dgraph_input/updates
directory.