@vsr1 Thank you for the output.
Here is mine from the server.
[myname@myserver-mds-query-i-4a0befb2 bin]$ ./couchbase-server -v
Couchbase Server 4.1.0-5005 (EE)
[myname@myserver-mds-query-i-4a0befb2 bin]$ curl -v http://localhost:8093/query/service -d 'statement=explain select * from catalog where form=$1&args=["product_type"]'
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8093 (#0)
> POST /query/service HTTP/1.1
> User-Agent: curl/7.40.0
> Host: localhost:8093
> Accept: */*
> Content-Length: 75
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 75 out of 75 bytes
< HTTP/1.1 200 OK
< Content-Length: 1811
< Content-Type: application/json; version=1.0.0
< Date: Wed, 20 Apr 2016 20:44:57 GMT
<
{
"requestID": "c2a4a9dc-b799-43dd-b3a8-6857cd2be59f",
"signature": "json",
"results": [
{
"#operator": "Sequence",
"~children": [
{
"#operator": "PrimaryScan",
"index": "#primary",
"keyspace": "catalog",
"namespace": "default",
"using": "gsi"
},
{
"#operator": "Parallel",
"~child": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Fetch",
"keyspace": "catalog",
"namespace": "default"
},
{
"#operator": "Filter",
"condition": "((`catalog`.`form`) = $1)"
},
{
"#operator": "InitialProject",
"result_terms": [
{
"expr": "self",
"star": true
}
]
},
{
"#operator": "FinalProject"
}
]
}
}
]
}
],
"status": "success",
"metrics": {
"elapsedTime": "12.021468ms",
"executionTime": "11.980412ms",
"resultCount": 1,
"resultSize": 1513
}
}
* Connection #0 to host localhost left intact
[myname@myserver-mds-query-i-4a0befb2 bin]$ curl -v http://localhost:8093/query/service -d 'statement=explain select * from catalog where form="product_type"'
* Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8093 (#0)
> POST /query/service HTTP/1.1
> User-Agent: curl/7.40.0
> Host: localhost:8093
> Accept: */*
> Content-Length: 65
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 65 out of 65 bytes
< HTTP/1.1 200 OK
< Content-Length: 2321
< Content-Type: application/json; version=1.0.0
< Date: Wed, 20 Apr 2016 20:45:23 GMT
<
{
"requestID": "5e185862-b496-4e07-a77e-cfe1a93e3cf5",
"signature": "json",
"results": [
{
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexScan",
"index": "idx_product_type_form",
"keyspace": "catalog",
"namespace": "default",
"spans": [
{
"Range": {
"High": [
"\"product_type\""
],
"Inclusion": 3,
"Low": [
"\"product_type\""
]
}
}
],
"using": "gsi"
},
{
"#operator": "Parallel",
"~child": {
"#operator": "Sequence",
"~children": [
{
"#operator": "Fetch",
"keyspace": "catalog",
"namespace": "default"
},
{
"#operator": "Filter",
"condition": "((`catalog`.`form`) = \"product_type\")"
},
{
"#operator": "InitialProject",
"result_terms": [
{
"expr": "self",
"star": true
}
]
},
{
"#operator": "FinalProject"
}
]
}
}
]
}
],
"status": "success",
"metrics": {
"elapsedTime": "12.376166ms",
"executionTime": "12.329222ms",
"resultCount": 1,
"resultSize": 2023
}
}
* Connection #0 to host localhost left intact