shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/cursor <<EOF { "query" : "LET s = SLEEP(0.25) LET t = SLEEP(0.5) RETURN 1", "count" : true, "options" : { "profile" : 2 } } EOF HTTP/1.1 201 Created content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "result" : [ 1 ], "hasMore" : false, "count" : 1, "cached" : false, "extra" : { "plan" : { "nodes" : [ { "type" : "SingletonNode", "dependencies" : [ ], "id" : 1, "estimatedCost" : 1, "estimatedNrItems" : 1 }, { "type" : "CalculationNode", "dependencies" : [ 1 ], "id" : 4, "estimatedCost" : 2, "estimatedNrItems" : 1, "expression" : { "type" : "value", "typeID" : 40, "value" : 1, "vType" : "int", "vTypeID" : 2 }, "outVariable" : { "id" : 3, "name" : "2" }, "canThrow" : false, "expressionType" : "json" }, { "type" : "CalculationNode", "dependencies" : [ 4 ], "id" : 2, "estimatedCost" : 3, "estimatedNrItems" : 1, "expression" : { "type" : "function call", "typeID" : 47, "name" : "SLEEP", "subNodes" : [ { "type" : "array", "typeID" : 41, "subNodes" : [ { "type" : "value", "typeID" : 40, "value" : 0.25, "vType" : "double", "vTypeID" : 3 } ] } ] }, "outVariable" : { "id" : 0, "name" : "s" }, "canThrow" : true, "expressionType" : "simple" }, { "type" : "CalculationNode", "dependencies" : [ 2 ], "id" : 3, "estimatedCost" : 4, "estimatedNrItems" : 1, "expression" : { "type" : "function call", "typeID" : 47, "name" : "SLEEP", "subNodes" : [ { "type" : "array", "typeID" : 41, "subNodes" : [ { "type" : "value", "typeID" : 40, "value" : 0.5, "vType" : "double", "vTypeID" : 3 } ] } ] }, "outVariable" : { "id" : 1, "name" : "t" }, "canThrow" : true, "expressionType" : "simple" }, { "type" : "ReturnNode", "dependencies" : [ 3 ], "id" : 5, "estimatedCost" : 5, "estimatedNrItems" : 1, "inVariable" : { "id" : 3, "name" : "2" }, "count" : true } ], "rules" : [ "move-calculations-up" ], "collections" : [ ], "variables" : [ { "id" : 3, "name" : "2" }, { "id" : 1, "name" : "t" }, { "id" : 0, "name" : "s" } ], "estimatedCost" : 5, "estimatedNrItems" : 1, "initialize" : true, "isModificationQuery" : false }, "stats" : { "writesExecuted" : 0, "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, "executionTime" : 0.7844831943511963, "nodes" : [ { "id" : 1, "calls" : 1, "items" : 1, "runtime" : 0.000008821487426757812, "blockType" : "SingletonBlock" }, { "id" : 2, "calls" : 1, "items" : 1, "runtime" : 0.2711036205291748, "blockType" : "CalculationBlock" }, { "id" : 3, "calls" : 1, "items" : 1, "runtime" : 0.7829852104187012, "blockType" : "CalculationBlock" }, { "id" : 4, "calls" : 1, "items" : 1, "runtime" : 0.000026702880859375, "blockType" : "CalculationBlock" }, { "id" : 5, "calls" : 1, "items" : 1, "runtime" : 0.7830147743225098, "blockType" : "ReturnBlock" } ] }, "warnings" : [ ], "profile" : { "initializing" : 0.000011444091796875, "parsing" : 0.00010895729064941406, "optimizing ast" : 0.000019550323486328125, "loading collections" : 0.000013828277587890625, "instantiating plan" : 0.00009131431579589844, "optimizing plan" : 0.0004820823669433594, "executing" : 0.7831740379333496, "finalizing" : 0.0005364418029785156 } }, "error" : false, "code" : 201 }