SHOW INDEXES
SHOW INDEXES
语句可以列出当前图空间内的所有Tag和Edge type(包括属性)的索引。
语法
SHOW {TAG | EDGE} INDEXES;
示例
nebula> SHOW TAG INDEXES;
+------------------+--------------+-----------------+
| Index Name | By Tag | Columns |
+------------------+--------------+-----------------+
| "fix" | "fix_string" | ["p1"] |
+------------------+--------------+-----------------+
| "player_index_0" | "player" | ["name"] |
+------------------+--------------+-----------------+
| "player_index_1" | "player" | ["name", "age"] |
+------------------+--------------+-----------------+
| "var" | "var_string" | ["p1"] |
+------------------+--------------+-----------------+
nebula> SHOW EDGE INDEXES;
+----------------+----------+---------+
| Index Name | By Edge | Columns |
+----------------+----------+---------+
| "follow_index" | "follow" | [] |
+----------------+----------+---------+
历史版本兼容性
Nebula Graph 2.0.1中, SHOW TAG/EDGE INDEXES
语句仅返回 Names
。
最后更新: August 20, 2021
当前内容版权归 Nebula Graph 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Nebula Graph .