首页 > 其他分享 >nebula 查询节点数、边数

nebula 查询节点数、边数

时间:2022-08-23 23:57:35浏览次数:123  
标签:STATS nebula +---------+------------+-------+ 1606552675 FINISHED +-------------

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 +---------+------------+-------+

 

标签:STATS,nebula,+---------+------------+-------+,1606552675,FINISHED,+-------------
From: https://www.cnblogs.com/smartisn/p/16618301.html

相关文章