Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc]index #1578

Merged
merged 6 commits into from
Jan 14, 2020
Merged

[doc]index #1578

merged 6 commits into from
Jan 14, 2020

Conversation

amber-moe
Copy link
Contributor

@amber-moe amber-moe commented Jan 2, 2020

query index doc.
code pr #1459 #1598

@amber-moe amber-moe added ready-for-testing PR: ready for the CI test and removed in progress do not review PR: not ready for the code review yet labels Jan 7, 2020
@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

nebula> CREATE TAG INDEX player_index_0 on player(name);
```

上述语句在所有标签为 _player_ 的顶点上为属性 _name_ 创建了一个索引。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the two are the same thing

CREATE {TAG | EDGE} INDEX [IF NOT EXISTS] <index_name> ON {<tag_name> | <edge_name>} (prop_name_list)
```

schema 索引可用于快速处理图查询。**Nebula Graph** 支持两种类型的索引:**标签索引**和**边类型索引**。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

边索引 is better ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

边索引 is definitely better, but 边类型索引 is more clear to me.

@whitewum whitewum requested a review from panda-sheep January 9, 2020 05:33
Copy link
Contributor

@bright-starry-sky bright-starry-sky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job ! LGTM

@dutor dutor merged commit c73da7b into vesoft-inc:master Jan 14, 2020
@amber-moe amber-moe deleted the index-query branch January 14, 2020 05:46
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* index

* index doc

* add if not exists and CN version

* add if exists in drop index

* address wilson and darion comments

Co-authored-by: dutor <440396+dutor@users.noreply.github.com>
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Jan 31, 2023
…p is empty (vesoft-inc#1578)

Co-authored-by: kyle.cao <kyle.cao@vesoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants