mirror of https://gitee.com/bigwinds/arangodb
73 lines
1.4 KiB
Plaintext
73 lines
1.4 KiB
Plaintext
shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF
|
|
{"query":"FOR p IN products RETURN p"}
|
|
EOF
|
|
|
|
HTTP/1.1 200 OK
|
|
content-type: application/json; charset=utf-8
|
|
|
|
{
|
|
"plan" : {
|
|
"nodes" : [
|
|
{
|
|
"type" : "SingletonNode",
|
|
"dependencies" : [ ],
|
|
"id" : 1,
|
|
"estimatedCost" : 1,
|
|
"estimatedNrItems" : 1
|
|
},
|
|
{
|
|
"type" : "EnumerateCollectionNode",
|
|
"dependencies" : [
|
|
1
|
|
],
|
|
"id" : 2,
|
|
"estimatedCost" : 11,
|
|
"estimatedNrItems" : 10,
|
|
"database" : "_system",
|
|
"collection" : "products",
|
|
"outVariable" : {
|
|
"id" : 0,
|
|
"name" : "p"
|
|
},
|
|
"random" : false
|
|
},
|
|
{
|
|
"type" : "ReturnNode",
|
|
"dependencies" : [
|
|
2
|
|
],
|
|
"id" : 3,
|
|
"estimatedCost" : 21,
|
|
"estimatedNrItems" : 10,
|
|
"inVariable" : {
|
|
"id" : 0,
|
|
"name" : "p"
|
|
}
|
|
}
|
|
],
|
|
"rules" : [ ],
|
|
"collections" : [
|
|
{
|
|
"name" : "products",
|
|
"type" : "read"
|
|
}
|
|
],
|
|
"variables" : [
|
|
{
|
|
"id" : 0,
|
|
"name" : "p"
|
|
}
|
|
],
|
|
"estimatedCost" : 21,
|
|
"estimatedNrItems" : 10
|
|
},
|
|
"warnings" : [ ],
|
|
"stats" : {
|
|
"rulesExecuted" : 22,
|
|
"rulesSkipped" : 0,
|
|
"plansCreated" : 1
|
|
},
|
|
"error" : false,
|
|
"code" : 200
|
|
}
|