Skip to content

Commit

Permalink
Upgrade vid (#693)
Browse files Browse the repository at this point in the history
* Delete search.html (#676)

* Update 3.vid.md

Co-authored-by: min.wu <50101159+whitewum@users.noreply.github.com>
  • Loading branch information
izhuxiaoqing and whitewum authored Sep 3, 2021
1 parent 38e30c0 commit 1b2128a
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions docs-2.0/1.introduction/3.vid.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,16 @@ VIDs can be generated via applications. Here are some tips:

The data type of VIDs must be defined when you [create the graph space](../3.ngql-guide/9.space-statements/1.create-space.md). Once defined, it cannot be modified.

<!--
## "查询起始点"(`start vid`)与全局扫描
## "Query `start vid` and global scan

绝大多数情况下,Nebula Graph 的查询语句(`MATCH`, `GO`, `LOOKUP`)的执行计划,必须要通过一定方式找到查询起始点的 VID (`start vid`)。
In most cases, the execution plan of query statements in Nebula Graph (`MATCH`, `GO`, and `LOOKUP`) must query the `start vid` in a certain way.

定位 `start vid` 只有两种方式:
There are only two ways to locate `start vid`:

1. 例如 `GO FROM "player100" OVER` 是在语句中显式的指明 `start vid` "player100";
1. For example, `GO FROM "player100" OVER` explicitly indicates in the statement that `start vid` is "player100".

2. 例如, `LOOKUP ON player WHERE player.name == "Tony Parker"` 或者 `MATCH (v:player {name:"Tony Parker"}) `,是通过属性 `player.name` 的索引来定位到 `start vid`
2. For example, `LOOKUP ON player WHERE player.name == "Tony Parker"` or `MATCH (v:player {name:"Tony Parker"})` locates `start vid` by the index of the property `player.name`.

!!! Caution "You cannot perform a global scan without `start vid`"

!!! caution 不能在没有 `start vid` 情况下进行全局扫描;
例如 `match (n) return n;` 会返回错误,因为此时无法定位到 `start vid`;这是一个全局扫描,因此被禁止。
-->
For example, `match (n) return n;` returns an error because `start vid` cannot be located at this time. As a global scan, it is forbidden.

0 comments on commit 1b2128a

Please sign in to comment.