nebula 查询节点数、边数

SHOW STATS - Nebula Graph Database 手册 (nebula-graph.com.cn)

 1 # 选择图空间。
 2 nebula> USE basketballplayer;
 3 
 4 # 执行SUBMIT JOB STATS。
 5 nebula> SUBMIT JOB STATS;
 6 +------------+
 7 | New Job Id |
 8 +------------+
 9 | 98         |
10 +------------+
11 
12 # 确认作业执行成功。
13 nebula> SHOW JOB 98;
14 +----------------+---------------+------------+------------+------------+
15 | Job Id(TaskId) | Command(Dest) | Status     | Start Time | Stop Time  |
16 +----------------+---------------+------------+------------+------------+
17 | 98             | "STATS"       | "FINISHED" | 1606552675 | 1606552675 |
18 +----------------+---------------+------------+------------+------------+
19 | 0              | "storaged2"   | "FINISHED" | 1606552675 | 1606552675 |
20 +----------------+---------------+------------+------------+------------+
21 | 1              | "storaged0"   | "FINISHED" | 1606552675 | 1606552675 |
22 +----------------+---------------+------------+------------+------------+
23 | 2              | "storaged1"   | "FINISHED" | 1606552675 | 1606552675 |
24 +----------------+---------------+------------+------------+------------+
25 
26 # 显示图空间统计信息。
27 nebula> SHOW STATS;
28 +---------+------------+-------+
29 | Type    | Name       | Count |
30 +---------+------------+-------+
31 | "Tag"   | "player"   | 51    |
32 +---------+------------+-------+
33 | "Tag"   | "team"     | 30    |
34 +---------+------------+-------+
35 | "Edge"  | "like"     | 81    |
36 +---------+------------+-------+
37 | "Edge"  | "serve"    | 152   |
38 +---------+------------+-------+
39 | "Space" | "vertices" | 81    |
40 +---------+------------+-------+
41 | "Space" | "edges"    | 233   |
42 +---------+------------+-------+

 

posted @ 2022-08-23 23:45  博二爷  阅读(2093)  评论(0编辑  收藏  举报