shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF
{
"query" : "FOR p IN products RETURN p"
}
EOF
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"plan" : {
"nodes" : [
{
"type" : "SingletonNode",
"dependencies" : [ ],
"id" : 1,
"estimatedCost" : 1,
"estimatedNrItems" : 1
},
{
"type" : "EnumerateCollectionNode",
"dependencies" : [
1
],
"id" : 2,
"estimatedCost" : 12,
"estimatedNrItems" : 10,
"random" : false,
"indexHint" : {
"forced" : false,
"type" : "none"
},
"outVariable" : {
"id" : 0,
"name" : "p"
},
"projections" : [ ],
"producesResult" : true,
"database" : "_system",
"collection" : "products",
"satellite" : false
},
{
"type" : "ReturnNode",
"dependencies" : [
2
],
"id" : 3,
"estimatedCost" : 22,
"estimatedNrItems" : 10,
"inVariable" : {
"id" : 0,
"name" : "p"
},
"count" : true
}
],
"rules" : [ ],
"collections" : [
{
"name" : "products",
"type" : "read"
}
],
"variables" : [
{
"id" : 0,
"name" : "p"
}
],
"estimatedCost" : 22,
"estimatedNrItems" : 10,
"initialize" : true,
"isModificationQuery" : false
},
"cacheable" : true,
"warnings" : [ ],
"stats" : {
"rulesExecuted" : 36,
"rulesSkipped" : 0,
"plansCreated" : 1
},
"error" : false,
"code" : 200
}