mirror of https://gitee.com/bigwinds/arangodb
11 lines
319 B
Plaintext
11 lines
319 B
Plaintext
arangosh> var formatPlan = function (plan) { return { estimatedCost: plan.estimatedCost, nodes: plan.nodes.map(function(node) { return node.type; }) }; };
|
|
arangosh> formatPlan(stmt.explain().plan);
|
|
{
|
|
"estimatedCost" : 3,
|
|
"nodes" : [
|
|
"SingletonNode",
|
|
"EnumerateCollectionNode",
|
|
"ReturnNode"
|
|
]
|
|
}
|