SHOW INDEXES

SHOW INDEXES语句可以列出当前图空间内的所有Tag和Edge type(包括属性)的索引。

语法

  1. SHOW {TAG | EDGE} INDEXES;

示例

  1. nebula> SHOW TAG INDEXES;
  2. +------------------+--------------+-----------------+
  3. | Index Name | By Tag | Columns |
  4. +------------------+--------------+-----------------+
  5. | "fix" | "fix_string" | ["p1"] |
  6. +------------------+--------------+-----------------+
  7. | "player_index_0" | "player" | ["name"] |
  8. +------------------+--------------+-----------------+
  9. | "player_index_1" | "player" | ["name", "age"] |
  10. +------------------+--------------+-----------------+
  11. | "var" | "var_string" | ["p1"] |
  12. +------------------+--------------+-----------------+
  13. nebula> SHOW EDGE INDEXES;
  14. +----------------+----------+---------+
  15. | Index Name | By Edge | Columns |
  16. +----------------+----------+---------+
  17. | "follow_index" | "follow" | [] |
  18. +----------------+----------+---------+

历史版本兼容性

Nebula Graph 2.0.1中, SHOW TAG/EDGE INDEXES 语句仅返回 Names


最后更新: August 20, 2021