arangosh> stmt.explain({ optimizer: { rules: [ "-all" ] } }); { "plan" : { "nodes" : [ { "type" : "SingletonNode", "dependencies" : [ ], "id" : 1, "estimatedCost" : 1, "estimatedNrItems" : 1 }, { "type" : "EnumerateCollectionNode", "dependencies" : [ 1 ], "id" : 2, "estimatedCost" : 102, "estimatedNrItems" : 100, "database" : "_system", "collection" : "test", "random" : false, "satellite" : false, "outVariable" : { "id" : 0, "name" : "i" } }, { "type" : "CalculationNode", "dependencies" : [ 2 ], "id" : 3, "estimatedCost" : 202, "estimatedNrItems" : 100, "expression" : { "type" : "compare >", "subNodes" : [ { "type" : "attribute access", "name" : "value", "subNodes" : [ { "type" : "reference", "name" : "i", "id" : 0 } ] }, { "type" : "value", "value" : 97 } ] }, "outVariable" : { "id" : 2, "name" : "1" }, "canThrow" : false, "expressionType" : "simple" }, { "type" : "FilterNode", "dependencies" : [ 3 ], "id" : 4, "estimatedCost" : 302, "estimatedNrItems" : 100, "inVariable" : { "id" : 2, "name" : "1" } }, { "type" : "CalculationNode", "dependencies" : [ 4 ], "id" : 5, "estimatedCost" : 402, "estimatedNrItems" : 100, "expression" : { "type" : "attribute access", "name" : "value", "subNodes" : [ { "type" : "reference", "name" : "i", "id" : 0 } ] }, "outVariable" : { "id" : 4, "name" : "3" }, "canThrow" : false, "expressionType" : "attribute" }, { "type" : "SortNode", "dependencies" : [ 5 ], "id" : 6, "estimatedCost" : 1066.3856189774724, "estimatedNrItems" : 100, "elements" : [ { "inVariable" : { "id" : 4, "name" : "3" }, "ascending" : true } ], "stable" : false }, { "type" : "CalculationNode", "dependencies" : [ 6 ], "id" : 7, "estimatedCost" : 1166.3856189774724, "estimatedNrItems" : 100, "expression" : { "type" : "attribute access", "name" : "value", "subNodes" : [ { "type" : "reference", "name" : "i", "id" : 0 } ] }, "outVariable" : { "id" : 6, "name" : "5" }, "canThrow" : false, "expressionType" : "attribute" }, { "type" : "ReturnNode", "dependencies" : [ 7 ], "id" : 8, "estimatedCost" : 1266.3856189774724, "estimatedNrItems" : 100, "inVariable" : { "id" : 6, "name" : "5" } } ], "rules" : [ ], "collections" : [ { "name" : "test", "type" : "read" } ], "variables" : [ { "id" : 6, "name" : "5" }, { "id" : 4, "name" : "3" }, { "id" : 2, "name" : "1" }, { "id" : 0, "name" : "i" } ], "estimatedCost" : 1266.3856189774724, "estimatedNrItems" : 100, "initialize" : true }, "warnings" : [ ], "stats" : { "rulesExecuted" : 0, "rulesSkipped" : 29, "plansCreated" : 1 }, "cacheable" : true }