You can set the threshold above which statistics information for a query will be logged.
You do this by using the dgraph
--log-stats-thresh
flag. Note that this flag is dependent on the
--log_stats
flag.
The syntax of the threshold flag is:
--log_stats_thresh value
The value argument is in milliseconds (1000 milliseconds = 1 second). However, the value can be specified in seconds by adding a trailing s to the number.
For example, this:
--log_stats_thresh 1s
is the same as:
--log_stat_thresh 1000
If the total execution time for an Oracle Commerce Query Language request
(not the expression execution time) is above this threshold, per-query
performance information will be logged. The default for the threshold is 1
minute (60000 milliseconds). That is, if you use the
--log_stats
flag but not the
--log_stats_thresh
flag, a value of 1 minute will be
used as the threshold for the queries.