跳转至

SHOW INDEXES

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

语法

SHOW {TAG | EDGE} INDEXES;

示例

nebula> SHOW TAG INDEXES;
+------------------+----------+----------+
| Index Name       | By Tag   | Columns  |
+------------------+----------+----------+
| "player_index_0" | "player" | []       |
| "player_index_1" | "player" | ["name"] |
+------------------+----------+----------+

nebula> SHOW EDGE INDEXES;
+----------------+----------+---------+
| Index Name     | By Edge  | Columns |
+----------------+----------+---------+
| "follow_index" | "follow" | []      |
+----------------+----------+---------+

历史版本兼容性

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


最后更新: January 31, 2024