Is there any easy way to get query time in couchbase server's N1QL like .explain() in mongodb?
I have a query like SELECT c.name, c.description from customer c and I would like to trace the time.
Is there any easy way to get query time in couchbase server's N1QL like .explain() in mongodb?
I have a query like SELECT c.name, c.description from customer c and I would like to trace the time.
Copyright © 2021 Jogjafile Inc.
in
N1QL, responses are JSON and include metadata. themetricsfield contains statistics, including the time taken to execute the query (so notablyelapsedTimeandexecutionTime).in the
2.2.0 developer previewof the Java SDK, you can access these metrics as aQueryMetricsobject using theinfo()method on theQueryResult.