How to track query execution time in couchbase N1QL server?
1 answer
in N1QL
, JSON responses and include metadata. the field metrics
contains statistics, including the time taken to execute the request (especially elapsedTime
and executionTime
).
in the 2.2.0 developer preview
Java SDK, you can access these metrics as an object QueryMetrics
using the method info()
on QueryResult
.
+1
source to share