Lcb_respquery metadata

When recovering data from a bucket via a SQL++ is the metadata always appended as part of the JSON document?

Thanks,

Is it standard however for in addition to the query result for the response time for the query also to be included? this is the additional data im after currently I receive only the requested document

import com.couchbase.client.java.Cluster;
import com.couchbase.client.java.query.QueryOptions;
import com.couchbase.client.java.query.QueryResult;

public class SimpleQueryExample {

  public static void main(String... args) {
    Cluster cluster = Cluster.connect("127.0.0.1", "Administrator", "password");
    QueryResult result = cluster.query(
			"select 1", QueryOptions.queryOptions().metrics(true)
    );
	System.err.println(result.rowsAsObject());
	System.err.println(result.metaData().metrics().get().executionTime());
  }
}
[{"$1":1}]
PT0.001449406S

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.