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", "value" : 1 }, "outVariable" : { "id" : 3, "name" : "2" }, "canThrow" : false, "expressionType" : "json" }, { "type" : "CalculationNode", "dependencies" : [ 4 ], "id" : 2, "estimatedCost" : 3, "estimatedNrItems" : 1, "expression" : { "type" : "function call", "name" : "SLEEP", "subNodes" : [ { "type" : "array", "subNodes" : [ { "type" : "value", "value" : 0.25 } ] } ] }, "outVariable" : { "id" : 0, "name" : "s" }, "canThrow" : true, "expressionType" : "simple" }, { "type" : "CalculationNode", "dependencies" : [ 2 ], "id" : 3, "estimatedCost" : 4, "estimatedNrItems" : 1, "expression" : { "type" : "function call", "name" : "SLEEP", "subNodes" : [ { "type" : "array", "subNodes" : [ { "type" : "value", "value" : 0.5 } ] } ] }, "outVariable" : { "id" : 1, "name" : "t" }, "canThrow" : true, "expressionType" : "simple" }, { "type" : "ReturnNode", "dependencies" : [ 3 ], "id" : 5, "estimatedCost" : 5, "estimatedNrItems" : 1, "inVariable" : { "id" : 3, "name" : "2" } } ], "rules" : [ "move-calculations-up" ], "collections" : [ ], "variables" : [ { "id" : 3, "name" : "2" }, { "id" : 1, "name" : "t" }, { "id" : 0, "name" : "s" } ], "estimatedCost" : 5, "estimatedNrItems" : 1, "initialize" : true }, "stats" : { "writesExecuted" : 0, "writesIgnored" : 0, "scannedFull" : 0, "scannedIndex" : 0, "filtered" : 0, "httpRequests" : 0, "executionTime" : 0.7826855182647705, "nodes" : [ { "id" : 1, "calls" : 2, "items" : 1, "runtime" : 9.5367431640625e-7 }, { "id" : 2, "calls" : 2, "items" : 1, "runtime" : 0.27073073387145996 }, { "id" : 3, "calls" : 2, "items" : 1, "runtime" : 0.7823588848114014 }, { "id" : 4, "calls" : 2, "items" : 1, "runtime" : 0.0000040531158447265625 }, { "id" : 5, "calls" : 2, "items" : 1, "runtime" : 0.7823820114135742 } ] }, "profile" : { "initializing" : 0.0000011920928955078125, "parsing" : 0.00002765655517578125, "optimizing ast" : 0.000003337860107421875, "loading collections" : 0.0000019073486328125, "instantiating plan" : 0.000012159347534179688, "optimizing plan" : 0.00003838539123535156, "executing" : 0.78240966796875, "finalizing" : 0.0001850128173828125 } }, "error" : false, "code" : 201 }