mirror of https://gitee.com/bigwinds/arangodb
62 lines
1.1 KiB
Plaintext
62 lines
1.1 KiB
Plaintext
> curl --data @- -X POST --dump - http://localhost:8529/_api/explain
|
|
{ "query" : "FOR u IN users FILTER u.id == @id LIMIT 2 RETURN u.name", "bindVars": { "id" : 3 } }
|
|
|
|
HTTP/1.1 200 OK
|
|
content-type: application/json
|
|
|
|
{
|
|
"plan": [
|
|
{ "id": 1,
|
|
"level": 1,
|
|
"type": "for",
|
|
"resultVariable": "u",
|
|
"expression": {
|
|
"type": "collection",
|
|
"value": "users",
|
|
"extra": {
|
|
"accessType": "index",
|
|
"index": {
|
|
"id": "1392880787389/1425650910275",
|
|
"type": "hash",
|
|
"attributes": "id"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"level": 1,
|
|
"type": "filter",
|
|
"expression": {
|
|
"type": "expression",
|
|
"value": "u.id == 3"
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"level": 1,
|
|
"type": "limit",
|
|
"offset": 0,
|
|
"count": 2
|
|
},
|
|
{
|
|
"id": 4,
|
|
"level": 1,
|
|
"type": "limit",
|
|
"offset": 0,
|
|
"count": 2
|
|
},
|
|
{
|
|
"id": 5,
|
|
"level": 1,
|
|
"type": "return",
|
|
"expression": {
|
|
"type": "expression",
|
|
"value": "u.name"
|
|
}
|
|
}
|
|
],
|
|
"error": false,
|
|
"code": 200
|
|
}
|