mirror of https://gitee.com/bigwinds/arangodb
49 lines
2.1 KiB
Plaintext
49 lines
2.1 KiB
Plaintext
arangosh> db._profileQuery(`
|
|
........> LET list = (FOR doc in acollection FILTER doc.value > 90 RETURN doc)
|
|
........> FOR a IN list
|
|
........> FILTER a.value < 91
|
|
........> RETURN a`, {}, {colors: false, optimizer:{rules:["-all"]}}
|
|
........> );
|
|
Query String:
|
|
LET list = (FOR doc in acollection FILTER doc.value > 90 RETURN doc)
|
|
FOR a IN list
|
|
FILTER a.value < 91
|
|
RETURN a
|
|
|
|
Execution plan:
|
|
Id NodeType Calls Items Runtime [s] Comment
|
|
1 SingletonNode 1 1 0.00000 * ROOT
|
|
7 SubqueryNode 1 1 0.00465 - LET list = ... /* const subquery */
|
|
2 SingletonNode 1 1 0.00000 * ROOT
|
|
3 EnumerateCollectionNode 11 10000 0.00116 - FOR doc IN acollection /* full collection scan */
|
|
4 CalculationNode 11 10000 0.00239 - LET #5 = (doc.`value` > 90) /* simple expression */ /* collections used: doc : acollection */
|
|
5 FilterNode 10 9909 0.00098 - FILTER #5
|
|
6 ReturnNode 10 9909 0.00011 - RETURN doc
|
|
8 EnumerateListNode 10 9909 0.00056 - FOR a IN list /* list iteration */
|
|
9 CalculationNode 10 9909 0.00212 - LET #7 = (a.`value` < 91) /* simple expression */
|
|
10 FilterNode 1 0 0.00008 - FILTER #7
|
|
11 ReturnNode 1 0 0.00000 - RETURN a
|
|
|
|
Indexes used:
|
|
none
|
|
|
|
Optimization rules applied:
|
|
none
|
|
|
|
Query Statistics:
|
|
Writes Exec Writes Ign Scan Full Scan Index Filtered Exec Time [s]
|
|
0 0 10000 0 10000 0.00774
|
|
|
|
Query Profile:
|
|
Query Stage Duration [s]
|
|
initializing 0.00001
|
|
parsing 0.00006
|
|
optimizing ast 0.00001
|
|
loading collections 0.00001
|
|
instantiating plan 0.00003
|
|
optimizing plan 0.00007
|
|
executing 0.00743
|
|
finalizing 0.00011
|
|
|
|
|