SHOW STATS

    图空间统计信息包含:

    • 点的总数
    • 边的总数
    • 每个Tag关联的点的总数
    • 每个Edge type关联的边的总数

    Caution

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