mirror of https://gitee.com/bigwinds/arangodb
66 lines
1.3 KiB
Plaintext
66 lines
1.3 KiB
Plaintext
arangosh> var stmt = db._createStatement("FOR user IN _users RETURN user");
|
|
arangosh> stmt.explain();
|
|
{
|
|
"plan" : {
|
|
"nodes" : [
|
|
{
|
|
"type" : "SingletonNode",
|
|
"dependencies" : [ ],
|
|
"id" : 1,
|
|
"estimatedCost" : 1,
|
|
"estimatedNrItems" : 1
|
|
},
|
|
{
|
|
"type" : "EnumerateCollectionNode",
|
|
"dependencies" : [
|
|
1
|
|
],
|
|
"id" : 2,
|
|
"estimatedCost" : 2,
|
|
"estimatedNrItems" : 1,
|
|
"database" : "_system",
|
|
"collection" : "_users",
|
|
"outVariable" : {
|
|
"id" : 0,
|
|
"name" : "user"
|
|
},
|
|
"random" : false
|
|
},
|
|
{
|
|
"type" : "ReturnNode",
|
|
"dependencies" : [
|
|
2
|
|
],
|
|
"id" : 3,
|
|
"estimatedCost" : 3,
|
|
"estimatedNrItems" : 1,
|
|
"inVariable" : {
|
|
"id" : 0,
|
|
"name" : "user"
|
|
}
|
|
}
|
|
],
|
|
"rules" : [ ],
|
|
"collections" : [
|
|
{
|
|
"name" : "_users",
|
|
"type" : "read"
|
|
}
|
|
],
|
|
"variables" : [
|
|
{
|
|
"id" : 0,
|
|
"name" : "user"
|
|
}
|
|
],
|
|
"estimatedCost" : 3,
|
|
"estimatedNrItems" : 1
|
|
},
|
|
"warnings" : [ ],
|
|
"stats" : {
|
|
"rulesExecuted" : 22,
|
|
"rulesSkipped" : 0,
|
|
"plansCreated" : 1
|
|
}
|
|
}
|