执行计划如下
(root@nebula) [haina]> profile LOOKUP ON service YIELD id(vertex) | YIELD COUNT(*) AS counts;
+---------+
| counts |
+---------+
| 1909673 |
+---------+
Got 1 rows (time spent 27481233/27472755 us)
Execution Plan (optimize time 1595 us)
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| id | name | dependencies | profiling data | operator info |
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| 3 | Aggregate | 2 | ver: 0, rows: 1, execTime: 355626us, totalTime: 355636us | outputVar: [ |
| | | | | { |
| | | | | "colNames": [ |
| | | | | "counts" |
| | | | | ], |
| | | | | "type": "DATASET", |
| | | | | "name": "__Aggregate_3" |
| | | | | } |
| | | | | ] |
| | | | | inputVar: __Project_2 |
| | | | | groupKeys: [] |
| | | | | groupItems: [ |
| | | | | { |
| | | | | "expr": "COUNT(*)" |
| | | | | } |
| | | | | ] |
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| 2 | Project | 4 | ver: 0, rows: 1909673, execTime: 8677338us, totalTime: 8677369us | outputVar: [ |
| | | | | { |
| | | | | "colNames": [ |
| | | | | "id(VERTEX)" |
| | | | | ], |
| | | | | "type": "DATASET", |
| | | | | "name": "__Project_2" |
| | | | | } |
| | | | | ] |
| | | | | inputVar: __TagIndexFullScan_1 |
| | | | | columns: [ |
| | | | | "id(VERTEX)" |
| | | | | ] |
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| 4 | TagIndexFullScan | 0 | { | outputVar: [ |
| | | | ver: 0, rows: 1909673, execTime: 0us, totalTime: 18430724us | { |
| | | | storage_detail: {IndexLimitNode(limit=9223372036854775807):40434429(us),IndexProjectionNode(projectColumn=[_vid,_tag,businessType,createdTime,dataPermissionId,extInfo,host,importance,invalid,isPublicPort,name,node,port,protocol,protocolType,serialNumber,sort,source,sourceType,unowned,updatedTime,version]):40434366(us),IndexVertexScanNode(IndexID=24, Path=()):40434154(us)} | "colNames": [ |
| | | | "127.0.0.1":9779 exec/total: 11103116(us)/16515358(us) | "_vid", |
| | | | } | "service._tag", |
| | | | | "service.businessType", |
| | | | | "service.createdTime", |
| | | | | "service.dataPermissionId", |
| | | | | "service.extInfo", |
| | | | | "service.host", |
| | | | | "service.importance", |
| | | | | "service.invalid", |
| | | | | "service.isPublicPort", |
| | | | | "service.name", |
| | | | | "service.node", |
| | | | | "service.port", |
| | | | | "service.protocol", |
| | | | | "service.protocolType", |
| | | | | "service.serialNumber", |
| | | | | "service.sort", |
| | | | | "service.source", |
| | | | | "service.sourceType", |
| | | | | "service.unowned", |
| | | | | "service.updatedTime", |
| | | | | "service.version" |
| | | | | ], |
| | | | | "type": "DATASET", |
| | | | | "name": "__TagIndexFullScan_1" |
| | | | | } |
| | | | | ] |
| | | | | inputVar: |
| | | | | space: 22 |
| | | | | dedup: false |
| | | | | limit: 9223372036854775807 |
| | | | | filter: |
| | | | | orderBy: [] |
| | | | | schemaId: 23 |
| | | | | isEdge: false |
| | | | | returnCols: [ |
| | | | | "_vid", |
| | | | | "_tag", |
| | | | | "businessType", |
| | | | | "createdTime", |
| | | | | "dataPermissionId", |
| | | | | "extInfo", |
| | | | | "host", |
| | | | | "importance", |
| | | | | "invalid", |
| | | | | "isPublicPort", |
| | | | | "name", |
| | | | | "node", |
| | | | | "port", |
| | | | | "protocol", |
| | | | | "protocolType", |
| | | | | "serialNumber", |
| | | | | "sort", |
| | | | | "source", |
| | | | | "sourceType", |
| | | | | "unowned", |
| | | | | "updatedTime", |
| | | | | "version" |
| | | | | ] |
| | | | | indexCtx: [ |
| | | | | { |
| | | | | "columnHints": [], |
| | | | | "filter": "", |
| | | | | "index_id": 24 |
| | | | | } |
| | | | | ] |
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
| 0 | Start | | ver: 0, rows: 0, execTime: 0us, totalTime: 29us | outputVar: [ |
| | | | | { |
| | | | | "colNames": [], |
| | | | | "type": "DATASET", |
| | | | | "name": "__Start_0" |
| | | | | } |
| | | | | ] |
-----+------------------+--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------
Tue, 12 Apr 2022 11:02:35 CST
(root@nebula) [haina]>